Hi Ronny,

On 18 April 2016 at 15:29, Ronny Hatteland <[email protected]> wrote:

> The issue was fixed using the following after every ->setText():
>
>
> Code:
>
> mViewer->getSceneData()->resizeGLObjectBuffers(osg::DisplaySettings::instance()->getMaxNumberOfGraphicsContexts());
>
>
> which is called inside of setSceneData(). However, this obviously has a
> huge performance impact and I cannot do this on mouse move. Any suggestions?
>

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.

The resizeGLObjbectBuffer() is only needed when graphics context are
created or destroyed.


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?

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to