diff --git a/src/osg/State.cpp b/src/osg/State.cpp index fba546105..bf3688e12 100644 --- a/src/osg/State.cpp +++ b/src/osg/State.cpp @@ -80,6 +80,10 @@ State::State(): { _checkGLErrors = ONCE_PER_ATTRIBUTE; } + else if(str && (strcmp(str, "OFF") == 0 || strcmp(str, "off") == 0)) + { + _checkGLErrors = NEVER_CHECK_GL_ERRORS; + } _currentActiveTextureUnit=0; _currentClientActiveTextureUnit=0;