summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-02 02:13:16 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-02 02:13:16 +0100
commita754cb6eafdb94ebc6978e75133bd846b259d063 (patch)
tree9b1dd0b70d791b356ab6e1e4361772c4e26e85d3
parent1973029229012d5761a070a741f5dd2d7d79b23f (diff)
fix windows compile error
Change-Id: I9154cd0c0352b8807b5a5eae2444629c9cfe3d48
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 59435326fb57..0242bf56abed 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -182,7 +182,7 @@ bool WGLisExtensionSupported(const char *extension)
}
}
-bool InitMultisample(PIXELFORMATDESCRIPTOR pfd, int& rPixelFormat)
+bool InitMultisample(PIXELFORMATDESCRIPTOR pfd, int& rPixelFormat, bool bUseDoubleBufferedRendering)
{
HWND hWnd = NULL;
GLWindow glWin;
@@ -232,7 +232,7 @@ bool InitMultisample(PIXELFORMATDESCRIPTOR pfd, int& rPixelFormat)
0,0
};
- if (!mbUseDoubleBufferedRendering)
+ if (!bUseDoubleBufferedRendering)
iAttributes[1] = GL_FALSE;
bool bArbMultisampleSupported = true;
@@ -600,7 +600,7 @@ bool OpenGLContext::ImplInit()
// we must check whether can set the MSAA
int WindowPix = 0;
- bool bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix);
+ bool bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix, mbUseDoubleBufferedRendering);
if (bMultiSampleSupport && WindowPix != 0)
{
m_aGLWin.bMultiSampleSupported = true;