Skip to content

Instantly share code, notes, and snippets.

@akoluthic
Last active June 28, 2016 14:43
Show Gist options
  • Save akoluthic/a4915230e25a93432e85039105f64a94 to your computer and use it in GitHub Desktop.
Save akoluthic/a4915230e25a93432e85039105f64a94 to your computer and use it in GitHub Desktop.
OpenGL error catching
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