Commit fe00ab5c authored by Philip Trettner's avatar Philip Trettner

Fixed infinite loop if glError persists.

parent 157d4ded
......@@ -79,7 +79,8 @@ void APIENTRY ACGL_KHR_default_debug_callback( GLenum _source, GLenum _type, GLu
// delete all errors to not create another error log for the same problem:
while ( glGetError() != GL_NO_ERROR ) {}
int tries(100);
while ( glGetError() != GL_NO_ERROR && --tries > 0 ) {}
}
} // OpenGL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment