Fix compilation in xcode

This commit is contained in:
Benau 2019-07-05 17:22:18 +08:00
parent f9af8d3654
commit 0de1a41c5a

View File

@ -643,7 +643,7 @@ bool CIrrDeviceMacOSX::createWindow()
NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0), NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0),
NSOpenGLPFADoubleBuffer, NSOpenGLPFADoubleBuffer,
NSOpenGLPFAOpenGLProfile, (NSOpenGLPixelFormatAttribute)NSOpenGLProfileVersion3_2Core, NSOpenGLPFAOpenGLProfile, (NSOpenGLPixelFormatAttribute)NSOpenGLProfileVersion3_2Core,
(NSOpenGLPixelFormatAttribute)nil (NSOpenGLPixelFormatAttribute)0
}; };
if (CreationParams.AntiAlias<2) if (CreationParams.AntiAlias<2)
@ -669,7 +669,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];