Removed GL_CHECK_ERROR

This commit is contained in:
Elias Naur 2004-03-07 16:01:45 +00:00
parent 5dc7761920
commit 497b9735f5
58 changed files with 700 additions and 721 deletions

View file

@ -60,6 +60,13 @@ abstract class Util {
return buffer.position();
}
static void checkGLError() {
int err = GL11.glGetError();
if (err != GL11.GL_NO_ERROR) {
throw new OpenGLException(err);
}
}
static int getGLInteger(int gl_enum) {
GL11.glGetInteger(gl_enum, int_buffer);
return int_buffer.get(0);