Brought back WIN32 hack to disable glScissor before swapbuffer.
Joshua was reporting swapbuffer glitches...
This commit is contained in:
Ton Roosendaal 2008-12-21 09:58:32 +00:00
parent 4a86a07f8a
commit c288eab363

@ -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 ***************** */