Patch provided by Jacques Beaurain (thanks!) to fix bug #322. I've added
authorTon Roosendaal <ton@blender.org>
Sat, 5 Jul 2003 11:15:49 +0000 (11:15 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 5 Jul 2003 11:15:49 +0000 (11:15 +0000)
the text below as comment:

adding a glFinish() here is to prevent Geforce in 'full scene antialias' mode
from antialising the Blender window. Officially a swapbuffers does a glFinish
itself, so this feels really like a hack... but it won't harm. (ton)

intern/ghost/intern/GHOST_WindowWin32.cpp

index dfcc91f471f6162ad01b4edbfb56aa7cb1cc695f..f4e3d0ca1f03bfe0a997cf351d96bf0dd33fa119 100644 (file)
@@ -348,6 +348,10 @@ GHOST_TSuccess GHOST_WindowWin32::setOrder(GHOST_TWindowOrder order)
 
 GHOST_TSuccess GHOST_WindowWin32::swapBuffers()
 {
+       // adding a glFinish() here is to prevent Geforce in 'full scene antialias' mode
+       // from antialising the Blender window. Officially a swapbuffers does a glFinish
+       // itself, so this feels really like a hack... but it won't harm. (ton)
+       glFinish();
        return ::SwapBuffers(m_hDC) == TRUE ? GHOST_kSuccess : GHOST_kFailure;
 }