Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorDamien Plisson <damien.plisson@yahoo.fr>2010-01-28 13:56:35 +0300
committerDamien Plisson <damien.plisson@yahoo.fr>2010-01-28 13:56:35 +0300
commit47e8ea500433efa188d968fdb8060ee3e30a896e (patch)
treefe107d72f45d2827fc75ea2557df101c4b92ad71 /intern
parent1b7b5eb434ec93279dad079194d8e7bef5f3b20c (diff)
Cocoa : fix 'Draw Overlap' method swap issues
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_WindowCocoa.mm10
1 files changed, 10 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_WindowCocoa.mm b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 9c35786c791..c02c3f11167 100644
--- a/intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/intern/ghost/intern/GHOST_WindowCocoa.mm
@@ -336,6 +336,11 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
// 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 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(
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