summaryrefslogtreecommitdiff
path: root/vcl/opengl/win
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-13 15:00:56 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-17 10:52:39 +0200
commit05db125c57ea3c8f04a304561209c32cc5c45a67 (patch)
treeb145bc06aefb426e9b92fe9b4defea02a5ee4abe /vcl/opengl/win
parentbe9b83445ec19346a4d5c830c955ed573469591a (diff)
loplugin:staticconstfield improvements
Change-Id: Ia0a19736dfd4500bb17b04c072710f8ee8744031 Reviewed-on: https://gerrit.libreoffice.org/60526 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/opengl/win')
-rw-r--r--vcl/opengl/win/gdiimpl.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/opengl/win/gdiimpl.cxx b/vcl/opengl/win/gdiimpl.cxx
index 0c622bb51d85..58ec8f730c29 100644
--- a/vcl/opengl/win/gdiimpl.cxx
+++ b/vcl/opengl/win/gdiimpl.cxx
@@ -529,9 +529,7 @@ bool WinOpenGLContext::ImplInit()
0, 0, 0 // Layer Masks Ignored
};
- if (mbUseDoubleBufferedRendering)
- PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER;
-
+ PixelFormatFront.dwFlags |= PFD_DOUBLEBUFFER;
PixelFormatFront.dwFlags |= PFD_DRAW_TO_WINDOW;
// we must check whether can set the MSAA
@@ -539,7 +537,7 @@ bool WinOpenGLContext::ImplInit()
bool bMultiSampleSupport = false;
if (!mbVCLOnly)
- bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix, mbUseDoubleBufferedRendering, false);
+ bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix, /*bUseDoubleBufferedRendering*/true, false);
else
VCL_GL_INFO("Skipping multisample detection for VCL.");