Example/OpenGL Error Testing
< Example
Jump to navigation
Jump to search
A simple loop to extract the current OpenGL errors:
GLenum err;
while((err = glGetError()) != GL_NO_ERROR)
{
// Process/log the error.
}
A simple loop to extract the current OpenGL errors:
GLenum err;
while((err = glGetError()) != GL_NO_ERROR)
{
// Process/log the error.
}