Mesa (8.0): darwin: do not create double-buffered offscreen pixel formats

Jeremy Huddleston jeremyhu at kemper.freedesktop.org
Mon Sep 24 23:07:23 UTC 2012


Module: Mesa
Branch: 8.0
Commit: 59997d619d8957fca3b2042fe4ebeed0709c0204
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=59997d619d8957fca3b2042fe4ebeed0709c0204

Author: Jonas Maebe <jonas.maebe at elis.ugent.be>
Date:   Mon Sep 10 00:44:15 2012 +0200

darwin: do not create double-buffered offscreen pixel formats

http://xquartz.macosforge.org/trac/ticket/536

Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
(cherry picked from commit 5fdf1f784bf449d7ce9839506fa23c5357696c4c)

---

 src/glx/apple/apple_visual.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glx/apple/apple_visual.c b/src/glx/apple/apple_visual.c
index a246164..282934f 100644
--- a/src/glx/apple/apple_visual.c
+++ b/src/glx/apple/apple_visual.c
@@ -116,7 +116,7 @@ apple_visual_create_pfobj(CGLPixelFormatObj * pfobj, const struct glx_config * m
       *uses_stereo = false;
    }
 
-   if (mode->doubleBufferMode) {
+   if (!offscreen && mode->doubleBufferMode) {
       attr[numattr++] = kCGLPFADoubleBuffer;
       *double_buffered = true;
    }




More information about the mesa-commit mailing list