diff options
author | Ton Roosendaal <ton@blender.org> | 2008-12-21 12:58:32 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2008-12-21 12:58:32 +0300 |
commit | c288eab363067e58406ab9c95b9450d93910501b (patch) | |
tree | 7a2bac98325238a4bdb93281b838a678d237f483 /source/blender | |
parent | 4a86a07f8a8344ce7bd0dce02d8902e33d652a1a (diff) |
2.5
Brought back WIN32 hack to disable glScissor before swapbuffer.
Joshua was reporting swapbuffer glitches...
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 10 |
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 ***************** */ |