From a0430d0d43e66ff71e0d0f1bf91be7757ebd5d93 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal <ton@blender.org> Date: Sat, 5 Jul 2003 11:15:49 +0000 Subject: [PATCH] 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) --- intern/ghost/intern/GHOST_WindowWin32.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- GitLab