summaryrefslogtreecommitdiff
path: root/vcl/source/opengl/OpenGLContext.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2015-12-15 19:23:35 +0200
committerTor Lillqvist <tml@collabora.com>2015-12-15 19:46:06 +0200
commitb716be0c06dd1385eb7ca1c4161233ee7e19314a (patch)
tree4a8a17a89fac9fa545ef525eea74647b675bd01e /vcl/source/opengl/OpenGLContext.cxx
parentdad412e07f805a53ad73ce2e80d187a70c77e8de (diff)
Initialise bArbMultisampleSupported as false
Otherwise the code doesn't make sense; InitMultisample() would return true even if no pixel format was chosen. Found by code reading by me and Emmanuel, not actually verified on non-multi-sample-capable hardware. Change-Id: I7197a1c72768bbf2c928193582104a82808ea53c
Diffstat (limited to 'vcl/source/opengl/OpenGLContext.cxx')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index b4d53eaf7b9c..36ede4264cbf 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -310,7 +310,7 @@ bool InitMultisample(const PIXELFORMATDESCRIPTOR& pfd, int& rPixelFormat,
iAttributes[2] = WGL_DRAW_TO_BITMAP_ARB;
}
- bool bArbMultisampleSupported = true;
+ bool bArbMultisampleSupported = false;
// First we check to see if we can get a pixel format for 8 samples
valid = wglChoosePixelFormatARB(hDC, iAttributes, fAttributes, 1, &pixelFormat, &numFormats);