From 2e7cfe7efa73099f5564f6f744bcbddee9d5c2aa Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 19 Jan 2016 15:39:46 +0000 Subject: [PATCH] From Ravi Mathur, OSX/Clang 7.0.0 build fix --- examples/osgviewerCocoa/ViewerCocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/osgviewerCocoa/ViewerCocoa.mm b/examples/osgviewerCocoa/ViewerCocoa.mm index 65a116843..959bbcee6 100644 --- a/examples/osgviewerCocoa/ViewerCocoa.mm +++ b/examples/osgviewerCocoa/ViewerCocoa.mm @@ -173,7 +173,7 @@ static void Internal_SetAlpha(NSBitmapImageRep *imageRep, unsigned char alpha_va NSOpenGLPFADepthSize, (NSOpenGLPixelFormatAttribute)32, // depth buffer size in bits // NSOpenGLPFAColorSize, (NSOpenGLPixelFormatAttribute)24, // Not sure if this helps // NSOpenGLPFAAlphaSize, (NSOpenGLPixelFormatAttribute)8, // Not sure if this helps - (NSOpenGLPixelFormatAttribute)nil + 0 }; return [[[NSOpenGLPixelFormat alloc] initWithAttributes:pixel_attributes] autorelease]; }