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
path: root/intern
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2003-07-05 15:15:49 +0400
committerTon Roosendaal <ton@blender.org>2003-07-05 15:15:49 +0400
commita0430d0d43e66ff71e0d0f1bf91be7757ebd5d93 (patch)
treeee5cb8fcfee6dd4f27edae02433f981d63d0846e /intern
parentc861979e7bcfde9ecd74953ac97aeebb16e5f380 (diff)
Patch provided by Jacques Beaurain (thanks!) to fix bug #322. I've added
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)
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowWin32.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp
index dfcc91f471f..f4e3d0ca1f0 100644
--- a/intern/ghost/intern/GHOST_WindowWin32.cpp
+++ b/intern/ghost/intern/GHOST_WindowWin32.cpp
@@ -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;
}