From 0de1a41c5a5a3b002a0583da343646d80dfa9116 Mon Sep 17 00:00:00 2001 From: Benau Date: Fri, 5 Jul 2019 17:22:18 +0800 Subject: [PATCH] Fix compilation in xcode --- lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm b/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm index 7a83c0eb3..6c313fd45 100644 --- a/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm +++ b/lib/irrlicht/source/Irrlicht/MacOSX/CIrrDeviceMacOSX.mm @@ -643,7 +643,7 @@ bool CIrrDeviceMacOSX::createWindow() NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0), NSOpenGLPFADoubleBuffer, NSOpenGLPFAOpenGLProfile, (NSOpenGLPixelFormatAttribute)NSOpenGLProfileVersion3_2Core, - (NSOpenGLPixelFormatAttribute)nil + (NSOpenGLPixelFormatAttribute)0 }; if (CreationParams.AntiAlias<2) @@ -669,7 +669,7 @@ bool CIrrDeviceMacOSX::createWindow() { // Third try without Doublebuffer os::Printer::log("No doublebuffering available.", ELL_WARNING); - windowattribs[14]=(NSOpenGLPixelFormatAttribute)nil; + windowattribs[14]=(NSOpenGLPixelFormatAttribute)0; } format = [[NSOpenGLPixelFormat alloc] initWithAttributes:windowattribs];