Hi André, Good to hear things are moving along on the Win32 implementation.
W.r.t releasing the graphics context, I have added the releaseContext method to GraphicContext, this was essentially for getting the stopping and starting of threading working under X11, and no doubt important on other platfoms to. I didn't put a releaseContext in the thread exit code though, I'll add this to the end of the GraphicsThread::run method. Try adding this to you local version to see if it helps. Cheers, Robert. On 1/12/07, André Garneau <[EMAIL PROTECTED]> wrote:
Hi Robert, Things are progressing well for the Win32 implementation of the GraphicsWindow class. It's likely that it will be submitted sometime next week (I still have a number of things to implement/complete and a bunch of cows to render before getting there though :-) ). FYI: During a multi-thread setup test, I noticed when closing a window that the current OpenGL rendering context does not seem to be released by the cancelled graphics thread that owns it. This causes the thread that close the window to fail grabbing a rendering context for it. Specifically, this happens here: void GraphicsContext::close(bool callCloseImplementation) { <-- called by the "main" thread ... setGraphicsThread(0); ... if (callCloseImplementation &&...) { makeCurrent(); <- this will fail because the rendering context associated is still owned by the graphics thread that just went away ... } ... } I'm still at the beginning of the investigation for this issue, so I could be wrong, but it does look to be the case for the moment. André _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/