Check for pending OpenGL errors, log a message if there is. Only for debug purpose since this check will be disabled in a release build.
See Implementation
Check for pending OpenGL errors, log a message if there is. Only for debug purpose since this check will be disabled in a release build.