[osg-users] Bug: hang when closing all windows except the last opened (Mac OS X / Win 32 / SingleThreaded)
Stephan Maximilian Huber
ratzfatz at digitalmind.de
Fri Jul 27 08:09:28 PDT 2007
Stephan Huber schrieb:
> If I close the left window first, the rendering stops in the right
> window. If I close the right window first, the rendering continues in
> the left window. It seems that the context of the right window got
> invalidated somehow, because if I resize the right window I get
> pixel-garbage.
After some debugging the cause for this hang is:
If you close all windows except the last opened, osgViewer::Viewer does
not make the last context current again, because it thinks that this
context is still the current one (in osgViewer::makeCurrent) To fix this
bug, osgViewer has to reset _currentContext after a window got closed.
I did a quick fix in osgViewer.cpp, but please review my change, there
is perhaps a better fix to this bug.
Thanks,
Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Viewer.cpp.zip
Type: application/x-zip-compressed
Size: 13865 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070727/8c11eaa0/attachment.bin
More information about the osg-users
mailing list