mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Removed GL_CHECK_ERROR
This commit is contained in:
parent
5dc7761920
commit
497b9735f5
58 changed files with 700 additions and 721 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue