Hi Johny,

By default, OSG will run graphics operations in a separate thread so trying to 
do OpenGL calls from the main thread will not have an effect. Update callbacks 
are always invoked from the main thread. Try using a DrawCallback on a Drawable 
or Camera instead which will be invoked from the OpenGL thread, and it will 
pass along the GraphicsContext for convenience as well.

If, however, you're set on not using threading at all, you can turn it off with 
the environment variable OSG_THREADING=SingleThreaded.

Cheers,
Jannik

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70388#70388





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

Reply via email to