2.5
authorTon Roosendaal <ton@blender.org>
Sun, 21 Dec 2008 09:58:32 +0000 (09:58 +0000)
committerTon Roosendaal <ton@blender.org>
Sun, 21 Dec 2008 09:58:32 +0000 (09:58 +0000)
Brought back WIN32 hack to disable glScissor before swapbuffer.
Joshua was reporting swapbuffer glitches...

source/blender/windowmanager/intern/wm_window.c

index 8d660230714a46fe79f981315068c4049501fb51..649bc887e6c77ae1154732eb13a2e75541aa713d 100644 (file)
@@ -568,14 +568,18 @@ void wm_window_lower(wmWindow *win)
 void wm_window_raise(wmWindow *win) 
 {
        GHOST_SetWindowOrder(win->ghostwin, GHOST_kWindowOrderTop);
-#ifdef _WIN32
-//     markdirty_all(); /* to avoid redraw errors in fullscreen mode (aphex) */
-#endif
 }
 
 void wm_window_swap_buffers(wmWindow *win)
 {
+       
+#ifdef WIN32
+       glDisable(GL_SCISSOR_TEST);
        GHOST_SwapWindowBuffers(win->ghostwin);
+       glEnable(GL_SCISSOR_TEST);
+#else
+       GHOST_SwapWindowBuffers(win->ghostwin);
+#endif
 }
 
 /* ******************* exported api ***************** */