summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-01 09:39:29 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-01 09:40:15 +0200
commitdbf5882af35a7644aca74c7049fbbbd9e8c11693 (patch)
tree49aa2019e641b4cbd440ff303888298d541fe970 /vcl
parent3b1ab016386cebe14435d79ec8693e3c7339a7df (diff)
Revert "windows opengl: Set PFD_DOUBLEBUFFER even for single buffer rendering"
This reverts commit 6fd7199230bfc81d6aadf53b3c115def8caba90c. Kendy says the original problem can't be reproduced anymore, and most unexpected flickering goes away with this for my nvidia card. Also, it's a good idea in general to keep PFD_DOUBLEBUFFER and WGL_DOUBLE_BUFFER_ARB in sync, which is now the case. Change-Id: I7a809d1c85be4206c01720d5de9b0a5617a59c87
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 0d7e9cc8167a..2f2d66f4c4c1 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -837,9 +837,8 @@ bool OpenGLContext::ImplInit()
0, 0, 0 // Layer Masks Ignored
};
- // interestingly we need this flag being set even if we use single buffer
- // rendering - otherwise we get errors with virtual devices
- PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER;
+ if (mbUseDoubleBufferedRendering)
+ PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER;
PixelFormatFront.dwFlags |= PFD_DRAW_TO_WINDOW;