[osg-users] Access to gl context

Christian Buchner christian.buchner at gmail.com
Mon Nov 13 04:45:41 PST 2017

Is this the function you're looking for?


I am having some trouble (despite the powers of Google) to find any OSG
example code using getWGLContext()


2017-11-10 14:33 GMT+01:00 Poojan Prabhu <poojanpromin at gmail.com>:

> 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
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20171113/d7e91e49/attachment.html>

More information about the osg-users mailing list