MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / getErrorInfo

Method getErrorInfo

src/main/java/net/optifine/shaders/Shaders.java:1904–1944  ·  view source on GitHub ↗
(int errorCode, String location)

Source from the content-addressed store, hash-verified

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 {

Callers 1

checkGLErrorMethod · 0.95

Calls 8

getProgramByIdMethod · 0.95
getNameMethod · 0.95
getDrawBufSettingsMethod · 0.80
getNameMethod · 0.65
isEmptyMethod · 0.45
equalsMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected