[osg-users] Draw thread per opengl context instead of per GraphicsContext

Ben Meijering bmeijering at tree-c.nl
Fri Nov 10 03:11:02 PST 2017

Hi Robert,

Thanks again for your quick response.

Isn't an opengl context already used by multiple windows when you use GraphicsContext::Traits::sharedContext ?

I also came across the following function:

BOOL WINAPI wglMakeCurrent(
   HDC   hdc,
   HGLRC hglrc

A window device context can be specified here, so it would seem that you can change the window.

I also came across the following:


This also seems to state that a single opengl context can be used to render to multiple windows.

Thank you!



Read this topic online here:

More information about the osg-users mailing list