[osg-users] Forcing a scene to rebind textures

philippe renon philippe_renon at yahoo.fr
Sun May 10 05:12:06 PDT 2015


Hi,
I am using osg 3.2.1 in a Qt application. Sometimes, for reasons too long to explain here, Qt will destroy the OpenGL context used by a scene. After that I see rendering problems and logs has warnings similar to this one:
DBG: [OSG NOTICE]
WRN: [OSG WARN] Warning: detected OpenGL error 'invalid enumerant' at After Renderer::compile
WRN: [OSG WARN]

The rendering issues are caused by missing textures. The geometry looks fine though.
Is there a way to force a complete scene to rebind its textures or do I need to destroy and rebuild the scene?
Philippe.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150510/d64f3fbf/attachment-0001.htm>


More information about the osg-users mailing list