[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [26362] trunk/blender/intern/ghost/intern/ GHOST_WindowCocoa.mm: Cocoa : fix 'Draw Overlap' method swap issues

Damien Plisson damien.plisson at yahoo.fr
Thu Jan 28 11:56:37 CET 2010


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
 		





More information about the Bf-blender-cvs mailing list