fix for [#34440] motion blur (2d filter) not working in osx
thanks Jens Verwiebe for the tests and review.
This commit is contained in:
@@ -514,6 +514,8 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
|
|||||||
pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
|
pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
|
||||||
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
||||||
|
|
||||||
|
pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccumSize;
|
||||||
|
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
||||||
|
|
||||||
if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;
|
if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;
|
||||||
|
|
||||||
@@ -557,6 +559,9 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
|
|||||||
pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
|
pixelFormatAttrsWindow[i++] = NSOpenGLPFADepthSize;
|
||||||
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
||||||
|
|
||||||
|
pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccumSize;
|
||||||
|
pixelFormatAttrsWindow[i++] = (NSOpenGLPixelFormatAttribute) 32;
|
||||||
|
|
||||||
if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;
|
if (stereoVisual) pixelFormatAttrsWindow[i++] = NSOpenGLPFAStereo;
|
||||||
|
|
||||||
pixelFormatAttrsWindow[i] = (NSOpenGLPixelFormatAttribute) 0;
|
pixelFormatAttrsWindow[i] = (NSOpenGLPixelFormatAttribute) 0;
|
||||||
|
Reference in New Issue
Block a user