From 064e5d108515a7ab7047ca8c2e177c0a2f796bd5 Mon Sep 17 00:00:00 2001 From: AlexKnauth Date: Wed, 22 Dec 2021 17:33:38 -0500 Subject: [PATCH] irrlicht: mac_device patch nil -> 0 --- .../libraries/irrlicht/mac_device.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/development/libraries/irrlicht/mac_device.patch b/pkgs/development/libraries/irrlicht/mac_device.patch index dc68c509975..2cd40293828 100644 --- a/pkgs/development/libraries/irrlicht/mac_device.patch +++ b/pkgs/development/libraries/irrlicht/mac_device.patch @@ -18,3 +18,21 @@ [NSBundle loadNibNamed:@"MainMenu" owner:[NSApp delegate]]; [NSApp finishLaunching]; } +@@ -642,7 +642,7 @@ + NSOpenGLPFASamples, (NSOpenGLPixelFormatAttribute)CreationParams.AntiAlias, + NSOpenGLPFAStencilSize, (NSOpenGLPixelFormatAttribute)(CreationParams.Stencilbuffer?1:0), + NSOpenGLPFADoubleBuffer, +- (NSOpenGLPixelFormatAttribute)nil ++ (NSOpenGLPixelFormatAttribute)0 + }; + + if (CreationParams.AntiAlias<2) +@@ -668,7 +668,7 @@ + { + // 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];