Kaydet (Commit) f41f50e4 authored tarafından Markus Mohrhard's avatar Markus Mohrhard Kaydeden (comit) Markus Mohrhard

fix windows compile error

Change-Id: I9154cd0c0352b8807b5a5eae2444629c9cfe3d48
üst 79ae6389
...@@ -182,7 +182,7 @@ bool WGLisExtensionSupported(const char *extension) ...@@ -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; HWND hWnd = NULL;
GLWindow glWin; GLWindow glWin;
...@@ -232,7 +232,7 @@ bool InitMultisample(PIXELFORMATDESCRIPTOR pfd, int& rPixelFormat) ...@@ -232,7 +232,7 @@ bool InitMultisample(PIXELFORMATDESCRIPTOR pfd, int& rPixelFormat)
0,0 0,0
}; };
if (!mbUseDoubleBufferedRendering) if (!bUseDoubleBufferedRendering)
iAttributes[1] = GL_FALSE; iAttributes[1] = GL_FALSE;
bool bArbMultisampleSupported = true; bool bArbMultisampleSupported = true;
...@@ -600,7 +600,7 @@ bool OpenGLContext::ImplInit() ...@@ -600,7 +600,7 @@ bool OpenGLContext::ImplInit()
// we must check whether can set the MSAA // we must check whether can set the MSAA
int WindowPix = 0; int WindowPix = 0;
bool bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix); bool bMultiSampleSupport = InitMultisample(PixelFormatFront, WindowPix, mbUseDoubleBufferedRendering);
if (bMultiSampleSupport && WindowPix != 0) if (bMultiSampleSupport && WindowPix != 0)
{ {
m_aGLWin.bMultiSampleSupported = true; m_aGLWin.bMultiSampleSupported = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment