<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1431259679153_2615">Hi,</div><div id="yui_3_16_0_1_1431259679153_2616"><br></div><div id="yui_3_16_0_1_1431259679153_2617" dir="ltr">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:</div><div id="yui_3_16_0_1_1431259679153_2618" dir="ltr"><br></div><div id="yui_3_16_0_1_1431259679153_2619" dir="ltr">DBG: [OSG NOTICE]<br style="" class="">WRN: [OSG WARN] Warning: detected OpenGL error 'invalid enumerant' at After Renderer::compile<br style="" class="">WRN: [OSG WARN]<br></div><div id="yui_3_16_0_1_1431259679153_2313"><br></div><div id="yui_3_16_0_1_1431259679153_2633" dir="ltr">The rendering issues are caused by missing textures. The geometry looks fine though.</div><div id="yui_3_16_0_1_1431259679153_2645" dir="ltr"><br></div><div id="yui_3_16_0_1_1431259679153_2646" dir="ltr">Is there a way to force a complete scene to rebind its textures or do I need to destroy and rebuild the scene?</div><div id="yui_3_16_0_1_1431259679153_2647" dir="ltr"><br></div><div id="yui_3_16_0_1_1431259679153_2648" dir="ltr">Philippe.<br></div></div></body></html>