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

Method checkGLError

src/main/java/net/minecraft/client/Minecraft.java:998–1012  ·  view source on GitHub ↗

Checks for an OpenGL error. If there is one, prints the error ID and error string.

(String message)

Source from the content-addressed store, hash-verified

996 * Checks for an OpenGL error. If there is one, prints the error ID and error string.
997 */
998 private void checkGLError(String message)
999 {
1000 if (this.enableGLErrorChecking)
1001 {
1002 int i = GL11.glGetError();
1003
1004 if (i != 0)
1005 {
1006 String s = GLU.gluErrorString(i);
1007 logger.error("########## GL ERROR ##########");
1008 logger.error("@ " + message);
1009 logger.error(i + ": " + s);
1010 }
1011 }
1012 }
1013
1014 /**
1015 * Shuts down the minecraft applet by stopping the resource downloads, and clearing up GL stuff; called when the

Callers 2

startGameMethod · 0.95
runGameLoopMethod · 0.95

Calls 2

glGetErrorMethod · 0.80
errorMethod · 0.45

Tested by

no test coverage detected