From John Farrier, "Best I can tell, there is an enumeration for NEVER_CHECK_GL_ERRORS in CheckForGLErrors, defined in State. State.cpp does check to see if you want MORE error checking, but there is no way to turn OFF error checking. This change allows disabling of OpenGL error checking."

This commit is contained in:
Robert Osfield 2016-01-25 10:45:07 +00:00
parent adbadd66be
commit e798db04c8

View File

@ -79,6 +79,10 @@ State::State():
{ {
_checkGLErrors = ONCE_PER_ATTRIBUTE; _checkGLErrors = ONCE_PER_ATTRIBUTE;
} }
else if(str && (strcmp(str, "OFF") == 0 || strcmp(str, "off") == 0))
{
_checkGLErrors = NEVER_CHECK_GL_ERRORS;
}
_currentActiveTextureUnit=0; _currentActiveTextureUnit=0;
_currentClientActiveTextureUnit=0; _currentClientActiveTextureUnit=0;