Last active
June 28, 2016 14:43
-
-
Save akoluthic/a4915230e25a93432e85039105f64a94 to your computer and use it in GitHub Desktop.
OpenGL error catching
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GLenum err = glGetError(); | |
while (err != GL_NO_ERROR) { | |
fprintf(stdout, "glError: %s caught at %s:%u\n", (char *)gluErrorString(err), __FILE__, __LINE__); | |
err = glGetError(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment