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: > 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, but can't find the post just now. I recall it > having to do with setting something in a stateset to get explicit > debug messages printed which would help find the source of the > message... > > I'm getting this when updating a vertex attribute array, and I was > hoping there was a way to eliminate it, because my geometry also > disappears when it happens, which leads to flashing (as I'm updating > attributes in a loop, and the message seems to pop up once in > approximately 10 attributes updated). > > Thanks in advance for any advice on how to debug this situation. > > J-S > -- Michael Henheffer - Software Developer Core3D/Easy View CARIS 115 Waggoners Lane, Fredericton, New Brunswick, Canada, E3B 2L4 Tel: +1-506-458-8533 Fax: +1-506-459-3849 _________________________________________________________________________ New Viewer for 2D and 3D Data Download your free copy of CARIS Easy View today! www.caris.com/easyview _________________________________________________________________________ This email and any files transmitted with it are confidential and intended only for the addressee(s). If you are not the intended recipient(s) please notify us by email reply. You should not use, disclose, distribute or copy this communication if received in error. Any views or opinions expressed in this email are solely those of the author and do not necessarily represent those of the company. No binding contract will result from this email until such time as a written document is signed on behalf of the company. _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org