From 60b906b9fe3af819ab2cabc83709adc6242dc1d9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 22 Apr 2010 08:59:52 +0000 Subject: [PATCH] Added a temporary /* */ around the check against _traits->vsync to avoid the errors reported with the current usage of RestoreContext for setting the vsync. --- src/osgViewer/GraphicsWindowWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/GraphicsWindowWin32.cpp b/src/osgViewer/GraphicsWindowWin32.cpp index e21551d14..c3bf6930a 100644 --- a/src/osgViewer/GraphicsWindowWin32.cpp +++ b/src/osgViewer/GraphicsWindowWin32.cpp @@ -1779,7 +1779,7 @@ bool GraphicsWindowWin32::realizeImplementation() if (!_initialized) return false; } - if (_traits.valid() && (_traits->sharedContext || _traits->vsync)) + if (_traits.valid() && (_traits->sharedContext /*|| _traits->vsync*/)) { // make context current so we can test capabilities and set up context sharing struct RestoreContext