Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/blender/windowmanager/intern/wm_window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c
index 8d660230714..649bc887e6c 100644
--- a/source/blender/windowmanager/intern/wm_window.c
+++ b/source/blender/windowmanager/intern/wm_window.c
@@ -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 ***************** */