summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexKnauth <alexander@knauth.org>2021-12-22 17:33:38 -0500
committerAlexKnauth <alexander@knauth.org>2021-12-22 17:33:38 -0500
commit064e5d108515a7ab7047ca8c2e177c0a2f796bd5 (patch)
tree0a63f7b96840cafcb4cd4f10776cea95d17df07d
parent4cd5481f71a76e331ea04101c1656a6b8090d2d1 (diff)
downloadnixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar.gz
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar.bz2
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar.lz
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar.xz
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.tar.zst
nixpkgs-064e5d108515a7ab7047ca8c2e177c0a2f796bd5.zip
irrlicht: mac_device patch nil -> 0
-rw-r--r--pkgs/development/libraries/irrlicht/mac_device.patch18
1 files changed, 18 insertions, 0 deletions
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];