(int errorCode, String location)
| 1902 | } |
| 1903 | |
| 1904 | private static String getErrorInfo(int errorCode, String location) |
| 1905 | { |
| 1906 | StringBuilder stringbuilder = new StringBuilder(); |
| 1907 | |
| 1908 | if (errorCode == 1286) |
| 1909 | { |
| 1910 | int i = EXTFramebufferObject.glCheckFramebufferStatusEXT(36160); |
| 1911 | String s = getFramebufferStatusText(i); |
| 1912 | String s1 = ", fbStatus: " + i + " (" + s + ")"; |
| 1913 | stringbuilder.append(s1); |
| 1914 | } |
| 1915 | |
| 1916 | String s2 = activeProgram.getName(); |
| 1917 | |
| 1918 | if (s2.isEmpty()) |
| 1919 | { |
| 1920 | s2 = "none"; |
| 1921 | } |
| 1922 | |
| 1923 | stringbuilder.append(", program: " + s2); |
| 1924 | Program program = getProgramById(activeProgramID); |
| 1925 | |
| 1926 | if (program != activeProgram) |
| 1927 | { |
| 1928 | String s3 = program.getName(); |
| 1929 | |
| 1930 | if (s3.isEmpty()) |
| 1931 | { |
| 1932 | s3 = "none"; |
| 1933 | } |
| 1934 | |
| 1935 | stringbuilder.append(" (" + s3 + ")"); |
| 1936 | } |
| 1937 | |
| 1938 | if (location.equals("setDrawBuffers")) |
| 1939 | { |
| 1940 | stringbuilder.append(", drawBuffers: " + activeProgram.getDrawBufSettings()); |
| 1941 | } |
| 1942 | |
| 1943 | return stringbuilder.toString(); |
| 1944 | } |
| 1945 | |
| 1946 | private static Program getProgramById(int programID) |
| 1947 | { |
no test coverage detected