Commit 28c9549e authored by mercury233's avatar mercury233

fix mac

parent 110abc8a
...@@ -667,7 +667,7 @@ bool CIrrDeviceMacOSX::createWindow() ...@@ -667,7 +667,7 @@ bool CIrrDeviceMacOSX::createWindow()
NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)CreationParams.AntiAlias, NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)CreationParams.AntiAlias,
NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0), NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0),
NSOpenGLPFADoubleBuffer, NSOpenGLPFADoubleBuffer,
(NSOpenGLPixelFormatAttribute)nil (NSOpenGLPixelFormatAttribute)0
}; };
if (CreationParams.AntiAlias<2) if (CreationParams.AntiAlias<2)
...@@ -693,7 +693,7 @@ bool CIrrDeviceMacOSX::createWindow() ...@@ -693,7 +693,7 @@ bool CIrrDeviceMacOSX::createWindow()
{ {
// Third try without Doublebuffer // Third try without Doublebuffer
os::Printer::log("No doublebuffering available.", ELL_WARNING); os::Printer::log("No doublebuffering available.", ELL_WARNING);
windowattribs[14]=(NSOpenGLPixelFormatAttribute)nil; windowattribs[14]=(NSOpenGLPixelFormatAttribute)0;
} }
format = [[NSOpenGLPixelFormat alloc] initWithAttributes:windowattribs]; format = [[NSOpenGLPixelFormat alloc] initWithAttributes:windowattribs];
......
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