Browse Source

Fix Mac 10.11 compile error

rdb 10 years ago
parent
commit
f1df65034d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm

+ 1 - 1
panda/src/cocoadisplay/cocoaGraphicsStateGuardian.mm

@@ -210,7 +210,7 @@ choose_pixel_format(const FrameBufferProperties &properties,
   attribs.push_back(CGDisplayIDToOpenGLDisplayMask(display));
 
   // End of the array
-  attribs.push_back((NSOpenGLPixelFormatAttribute) nil);
+  attribs.push_back((NSOpenGLPixelFormatAttribute)0);
 
   // Create the format.
   NSOpenGLPixelFormat* format = [[NSOpenGLPixelFormat alloc] initWithAttributes:&attribs[0]];