[98099] trunk/dports/x11/mesa
jeremyhu at macports.org
jeremyhu at macports.org
Mon Sep 24 16:18:58 PDT 2012
Revision: 98099
http://trac.macports.org//changeset/98099
Author: jeremyhu at macports.org
Date: 2012-09-24 16:18:58 -0700 (Mon, 24 Sep 2012)
Log Message:
-----------
mesa: Don't allow double buffering offscreen windows. CGL doesn't like that much.
Modified Paths:
--------------
trunk/dports/x11/mesa/Portfile
Added Paths:
-----------
trunk/dports/x11/mesa/files/0001-darwin-do-not-create-double-buffered-offscreen-pixel.patch
Modified: trunk/dports/x11/mesa/Portfile
===================================================================
--- trunk/dports/x11/mesa/Portfile 2012-09-24 22:36:27 UTC (rev 98098)
+++ trunk/dports/x11/mesa/Portfile 2012-09-24 23:18:58 UTC (rev 98099)
@@ -6,6 +6,7 @@
name mesa
epoch 1
version 8.0.4
+revision 1
categories x11 graphics
maintainers jeremyhu openmaintainer
license MIT
@@ -32,6 +33,7 @@
port:xorg-libXi \
port:xorg-libXmu
+patchfiles 0001-darwin-do-not-create-double-buffered-offscreen-pixel.patch
patch.pre_args -p1
use_configure no
Added: trunk/dports/x11/mesa/files/0001-darwin-do-not-create-double-buffered-offscreen-pixel.patch
===================================================================
--- trunk/dports/x11/mesa/files/0001-darwin-do-not-create-double-buffered-offscreen-pixel.patch (rev 0)
+++ trunk/dports/x11/mesa/files/0001-darwin-do-not-create-double-buffered-offscreen-pixel.patch 2012-09-24 23:18:58 UTC (rev 98099)
@@ -0,0 +1,30 @@
+From 59997d619d8957fca3b2042fe4ebeed0709c0204 Mon Sep 17 00:00:00 2001
+From: Jonas Maebe <jonas.maebe at elis.ugent.be>
+Date: Mon, 10 Sep 2012 00:44:15 +0200
+Subject: [PATCH] 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 file changed, 1 insertion(+), 1 deletion(-)
+
+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;
+ }
+--
+1.7.12.1
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120924/ca66f29e/attachment.html>
More information about the macports-changes
mailing list