Hi,

I am using OSG 3.2.1

When the setPixelFormat() method in GraphicsWindowWin32::setWindow( HWND handle 
) is called, it creates an openGL context: "Win32WindowingSystem::OpenGLContext 
openGLContext;" which later is destroyed due to calling its destructor when 
existing the setPixelFormat() method.

Basically, a context is created and then deleted before the normal rendering 
starts in the second context:


Code:
wglChoosePixelFormat(2A013DC8,02F0E160)=1 
wglSetPixelFormat(2A013DC8,1,02F0E160)=true 
wglCreateContext(2A013DC8)=00010000 
wglGetCurrentContext()=00000000 
wglMakeCurrent(2A013DC8,00010000)=true 
wglGetProcAddress("wglChoosePixelFormatARB")=03A15E60 
wglChoosePixelFormatARB(2A013DC8,1B833E28,00000000,1,02F0E0F0,02F0E0E4)=true 
wglSetPixelFormat(DB012495,1,02F0E244)=true 
wglMakeCurrent(DB012495,00000000)=true 
wglMakeCurrent(2A013DC8,00000000)=true 
wglDeleteContext(00010000)=true 
wglCreateContext(DB012495)=00020000 
wglMakeCurrent(DB012495,00020000)=true


Is this intentional? How can I prevent the creation of this temporary context?

Thank you!

Cheers,
Ronny[/code]

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to