Revision: 26362
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26362
Author: damien78
Date: 2010-01-28 11:56:35 +0100 (Thu, 28 Jan 2010)
Log Message:
-----------
Cocoa : fix 'Draw Overlap' method swap issues
Modified Paths:
--------------
trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
Modified: trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm
===================================================================
--- trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-01-28
10:48:17 UTC (rev 26361)
+++ trunk/blender/intern/ghost/intern/GHOST_WindowCocoa.mm 2010-01-28
10:56:35 UTC (rev 26362)
@@ -336,6 +336,11 @@
// Pixel Format Attributes for the windowed NSOpenGLContext
i=0;
pixelFormatAttrsWindow[i++] = NSOpenGLPFADoubleBuffer;
+
+ // Guarantees the back buffer contents to be valid after a call to
NSOpenGLContext object’s flushBuffer
+ // needed for 'Draw Overlap' drawing method
+ pixelFormatAttrsWindow[i++] = NSOpenGLPFABackingStore;
+
pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccelerated;
//pixelFormatAttrsWindow[i++] = NSOpenGLPFAAllowOfflineRenderers,; //
Removed to allow 10.4 builds, and 2 GPUs rendering is not used anyway
@@ -366,6 +371,11 @@
if (pixelFormat == nil) {
i=0;
pixelFormatAttrsWindow[i++] = NSOpenGLPFADoubleBuffer;
+
+ // Guarantees the back buffer contents to be valid after a call
to NSOpenGLContext object’s flushBuffer
+ // needed for 'Draw Overlap' drawing method
+ pixelFormatAttrsWindow[i++] = NSOpenGLPFABackingStore;
+
pixelFormatAttrsWindow[i++] = NSOpenGLPFAAccelerated;
//pixelFormatAttrsWindow[i++] =
NSOpenGLPFAAllowOfflineRenderers,; // Removed to allow 10.4 builds, and 2
GPUs rendering is not used anyway
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs