[osg-users] Debugging "Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, )"

Cole, Charles E. (LARC-B702)[GENEX SYSTEMS] Charles.E.Cole at nasa.gov
Wed Oct 24 13:07:04 PDT 2007

This was Robert's response to a similar situation:

Its likely that some OpenGL state you are setting isn't supported on
your hardware.  The big question is what OpenGL features are causing
this problem.  You could enable finer grained checking for OpenGL errros
via osg::State::setCheckForGLErrors(osg:State::ONCE_PER_ATTRIBUTE);
Or enable by tweaking the State constructor in src/osg/State.cpp.
You'll see a block:

#if 1
    _checkGLErrors = ONCE_PER_FRAME;
    _checkGLErrors = ONCE_PER_ATTRIBUTE; #endif

Just change the #if 1 to #if 0.

This might give you a bit more info.



More information about the osg-users mailing list