[osg-submissions] osgviewerSDL Resize

Jeremy L. Moles jeremy at emperorlinux.com
Tue Oct 23 10:06:18 PDT 2007


This extra call to SDL_VideoSetMode() prevents my viewport from getting
all wonky when I resize the SDL window. I'm not sure if this bug has
always existed or not, but according to the SDL documentation this
operation should be safe regardless, and doesn't not introduce the need
for extra memory management (that is: there is no need to "cleanup" the
old screen variable, that is all handled by SDL for us).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: osgviewerSDL.cpp
Type: text/x-c++src
Size: 5782 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20071023/7f888a1b/attachment.cpp 


More information about the osg-submissions mailing list