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

2007-10-25 Thread Mihai Radu
Hi, I hit the same problem with code ported from 1.2 to 2.0, and to trace it I used gDebugger ( the trial ) and set breakpoints to OpenGL errors. In my case it turned out to be using osg::Program without any shaders for some parts of the scene. I'll try this way also, see if it confirms the

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

2007-10-24 Thread beelzebob999-osg
Subject: [osg-users] Debugging Warning: detected OpenGL error 'invalid value' after RenderBin::draw(, ) Hello Robert, I remember you mentioning a way (in OSG) to find out the source of the message Warning: detected OpenGL error 'invalid value' after RenderBin::draw(,) sometime in the past

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

2007-10-24 Thread Michael Henheffer
Hi J-S, I think calling the following might be what you are looking for to narrow down the source of your error. pState-setCheckForGLErrors (osg::State::CheckForGLErrors::ONCE_PER_ATTRIBUTE) where pState is a pointer to the osg::State. Hope this helps, Mike Jean-Sébastien Guay wrote:

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

2007-10-24 Thread Cole, Charles E. (LARC-B702)[GENEX SYSTEMS]
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

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

2007-10-24 Thread Jean-Sébastien Guay
Hello Joel, We received this error message whenever our thread tried to update the state of a node while the drawing thread was trying to render it. Adding a mutex solved our issue. Hmmm, I'm doing this in the update traversal, so I should be ok on that front... But maybe I'll test it out

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

2007-10-24 Thread Jean-Sébastien Guay
Hello again, We received this error message whenever our thread tried to update the state of a node while the drawing thread was trying to render it. Adding a mutex solved our issue. Hmmm, I'm doing this in the update traversal, so I should be ok on that front... But maybe I'll test it out