<div dir="ltr">Hi Ronny,<br><div class="gmail_extra"><br><div class="gmail_quote">On 18 April 2016 at 15:29, Ronny Hatteland <span dir="ltr"><<a href="mailto:ronnyhatteland@gmail.com" target="_blank">ronnyhatteland@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The issue was fixed using the following after every ->setText():<br>
<br>
<br>
Code:<br>
mViewer->getSceneData()->resizeGLObjectBuffers(osg::DisplaySettings::instance()->getMaxNumberOfGraphicsContexts());<br>
<br>
<br>
which is called inside of setSceneData(). However, this obviously has a huge performance impact and I cannot do this on mouse move. Any suggestions?<br>
<span class=""></span></blockquote><div><br></div><div>That should not be needed at all, and indicative that something somewhere in your application or it's usage of the OSG is messing up the GL object management. <br><br></div><div>The resizeGLObjbectBuffer() is only needed when graphics context are created or destroyed. <br><br><br></div><div>As to what is going wrong your case I can't say - something *very* odd is happening. Are you creating your own graphics context / modifying the viewer?<br><br></div><div>Robert.<br></div><div><br></div><div><br><br></div><div> </div></div></div></div>