<div dir="ltr"><div>Hi all.</div><div><br></div><div>Trying OSG 3.5.1 and I have started to get some problems with objects (osg::Program/osg::Shaders etc.) being de-allocated after context is destroyed:</div><div><br></div>Error: OpenGL version test failed, requires valid graphics context.<div><br></div><div><br></div><div>Sometime it crasches sometimes it just print the warning.</div><div><br></div><div>I can reproduce it with osgViewer --ssm</div><div><br></div><div>The only solution so far has been to keep a static reference to the camera in the scene, which feels a lot like a hack.</div><div>The same code worked in 3.4.0. So as you wrote in an earlier post, this probably reveals something that was not deallocated before.</div><div><br></div><div>As soon as the viewer is destroyed, it takes the camera with it. Hence the Context is also destroyed.</div><div><br></div><div>Not sure how to handle this in an general way.</div><div><br></div><div>/Anders</div><div><br clear="all"><div><br></div>-- <br><div class="gmail_signature">__________________________________________<br>Anders Backman, HPC2N<br>90187 Umeå University, Sweden<br><a href="mailto:anders@cs.umu.se" target="_blank">anders@cs.umu.se</a> <a href="http://www.hpc2n.umu.se/" target="_blank">http://www.hpc2n.umu.se</a><br>Cell: +46-70-392 64 67</div>
</div></div>