Skip to content

Commit

Permalink
Attempt to clear max ten errors from OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
breiler committed Nov 28, 2024
1 parent 427d922 commit 20e6a6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ private void checkGLError(GL2 gl) {
if (error != GL2.GL_NO_ERROR) {
// Try and clear all errors
int errors = 0;
while (gl.glGetError() != GL2.GL_NO_ERROR && errors > 10) {
while (gl.glGetError() != GL2.GL_NO_ERROR && errors < 10) {
errors++;
}
throw new RuntimeException("GL error: " + error);
Expand Down

0 comments on commit 20e6a6d

Please sign in to comment.