Show
Ignore:
Timestamp:
05/07/09 15:18:35 (6 years ago)
Author:
robert
Message:

From Chris Denham, fix for swapBuffers warning when window is minimized under Windows.

svn merge -r 10146:10147 http://www.openscenegraph.org/svn/osg/OpenSceneGraph/trunk/src/osgViewer/

Location:
OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgViewer
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgViewer

    • Property svn:mergeinfo set to /OpenSceneGraph/trunk/src/osgViewer:10147
  • OpenSceneGraph/branches/OpenSceneGraph-2.8/src/osgViewer/GraphicsWindowWin32.cpp

    • Property svn:mergeinfo changed from /OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowWin32.cpp:9824 to /OpenSceneGraph/trunk/src/osgViewer/GraphicsWindowWin32.cpp:9824,10147
    r9825 r10148  
    17831783{ 
    17841784    if (!_realized) return; 
    1785     if (!::SwapBuffers(_hdc)) 
     1785    if (!::SwapBuffers(_hdc) && ::GetLastError() != 0) 
    17861786    { 
    17871787        reportErrorForScreen("GraphicsWindowWin32::swapBuffersImplementation() - Unable to swap display buffers", _traits->screenNum, ::GetLastError());