diff --git a/ugs-platform/ugs-platform-visualizer/src/main/java/com/willwinder/ugs/nbm/visualizer/shared/VertexObjectRenderable.java b/ugs-platform/ugs-platform-visualizer/src/main/java/com/willwinder/ugs/nbm/visualizer/shared/VertexObjectRenderable.java index 436259fc6..18d32a2e6 100644 --- a/ugs-platform/ugs-platform-visualizer/src/main/java/com/willwinder/ugs/nbm/visualizer/shared/VertexObjectRenderable.java +++ b/ugs-platform/ugs-platform-visualizer/src/main/java/com/willwinder/ugs/nbm/visualizer/shared/VertexObjectRenderable.java @@ -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);