Checks for an OpenGL error. If there is one, prints the error ID and error string.
(String message)
| 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 |
no test coverage detected