Hi Jean-Sébastien,

Jean-Sébastien Guay wrote:
> If you're checking for an OpenGL extension, you need to be in a thread
> that has a graphics context valid, or use a pre/postdraw camera callback
> to do the check. Maybe call the initialize method in a pre-draw callback
> which you would put on your main camera?

This helped a lot: as you suggested I call initialize() in a pre-draw callback
of the main camera now, extensions are found and the Stats are displayed nicely.
Thank you!

Alex.

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

Reply via email to