aboutsummaryrefslogtreecommitdiff
path: root/graphics/libosmesa
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/libosmesa')
-rw-r--r--graphics/libosmesa/Makefile1
-rw-r--r--graphics/libosmesa/files/patch-src-mesa-drivers-osmesa_osmesa.c10
2 files changed, 11 insertions, 0 deletions
diff --git a/graphics/libosmesa/Makefile b/graphics/libosmesa/Makefile
index 33a1e4513cf4..c1b7c3f03540 100644
--- a/graphics/libosmesa/Makefile
+++ b/graphics/libosmesa/Makefile
@@ -7,6 +7,7 @@
PORTNAME= libosmesa
PORTVERSION= 7.8.2
+PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/
DISTNAME= MesaLib-${PORTVERSION}
diff --git a/graphics/libosmesa/files/patch-src-mesa-drivers-osmesa_osmesa.c b/graphics/libosmesa/files/patch-src-mesa-drivers-osmesa_osmesa.c
new file mode 100644
index 000000000000..65015740fd70
--- /dev/null
+++ b/graphics/libosmesa/files/patch-src-mesa-drivers-osmesa_osmesa.c
@@ -0,0 +1,10 @@
+--- src/mesa/drivers/osmesa/osmesa.c.orig 2010-07-22 15:04:03.000000000 +0200
++++ src/mesa/drivers/osmesa/osmesa.c 2010-07-22 15:04:02.000000000 +0200
+@@ -1329,6 +1329,7 @@
+ * size.
+ */
+ osmesa->rb = new_osmesa_renderbuffer(&osmesa->mesa, osmesa->format, type);
++ _mesa_remove_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT);
+ _mesa_add_renderbuffer(osmesa->gl_buffer, BUFFER_FRONT_LEFT, osmesa->rb);
+ assert(osmesa->rb->RefCount == 2);
+