fix for [#34440] motion blur (2d filter) not working in osx
authorDalai Felinto <dfelinto@gmail.com>
Wed, 27 Feb 2013 22:48:34 +0000 (22:48 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Wed, 27 Feb 2013 22:48:34 +0000 (22:48 +0000)
thanks Jens Verwiebe for the tests and review.

intern/ghost/intern/GHOST_WindowCocoa.mm

index 8d5f8bf..6517e3f 100644 (file)
@@ -514,6 +514,8 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
        pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
        pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
        
+       pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccumSize;
+       pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
        
        if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;
        
@@ -556,6 +558,9 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
                
                pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
                pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
+
+               pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccumSize;
+               pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
                
                if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;