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
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/src/ghostwinlay.c')
-rw-r--r--source/blender/src/ghostwinlay.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/src/ghostwinlay.c b/source/blender/src/ghostwinlay.c
index 7179f2fae57..9388ac93543 100644
--- a/source/blender/src/ghostwinlay.c
+++ b/source/blender/src/ghostwinlay.c
@@ -478,6 +478,18 @@ void window_make_active(Window *win) {
}
void window_swap_buffers(Window *win) {
+#ifdef _WIN32
+ // 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)
+ //
+ // moved it here from ghost because it is a performance killer for the game engine,
+ // glFinish forces synchronization with the graphics card and calling it is strongly
+ // discouraged for good performance. (brecht)
+ //
+ glFinish();
+#endif
+
GHOST_SwapWindowBuffers(win->ghostwin);
}