[osg-users] Equivalent of glTexSubImage2D ?
Jannik Heller
scrawl at baseoftrash.de
Thu Mar 2 05:40:31 PST 2017
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
More information about the osg-users
mailing list