[osg-users] Disappearing text

Robert Osfield robert.osfield at gmail.com
Mon Apr 18 07:44:38 PDT 2016


Hi Ronny,

On 18 April 2016 at 15:29, Ronny Hatteland <ronnyhatteland at gmail.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160418/71f6efff/attachment-0003.htm>


More information about the osg-users mailing list