[osg-users] Access to gl context
Poojan Prabhu
poojanpromin at gmail.com
Fri Nov 10 05:33:00 PST 2017
Hi,
We are using shared context, but have custom drawables that use Vertex Array Objects. This causes a problem in the case of multiple windows (where each is a separate gl context).
We can manage/create vaos depending on the gl context id that we are currently rendering with.
But, we can't use context id as reported by render info, because that represents the shared context id and not the HGLRC
Prefer to avoid wglGetCurrentContext in each draw call obviously. And we _do_ want to use shared contexts.
How can we work around this so that we have access to the HGLRC or an id representing it?
Thank you!
Cheers,
Poojan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=72358#72358
More information about the osg-users
mailing list