Example/OpenGL Error Testing

From OpenGL Wiki
< Example
Revision as of 17:42, 2 January 2018 by Flfirsla (talk | contribs)
Jump to: navigation, search

A simple loop to extract the current OpenGL errors:

GLenum err;
while((err = glGetError()) != GL_NO_ERROR)
{
  // Process/log the error.
}