mesa3d: fixed XCB compatibility bug

This commit is contained in:
Tilman Sauerbeck 2006-11-29 18:36:49 +01:00
parent 192a261cc5
commit f8fb943040
3 changed files with 22 additions and 2 deletions

View File

@ -1,2 +1,3 @@
0f2794baf7a9d98b22caea9f78c6942d MesaDemos-6.5.1.tar.bz2
c46f2c6646a270911b791dd8e1c2d977 MesaLib-6.5.1.tar.bz2
5c5c9197cb3ceb7d8598314bdea1581b mesa3d.diff

View File

@ -5,12 +5,15 @@
name=mesa3d
version=6.5.1
release=2
source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2)
release=3
source=(http://dl.sourceforge.net/$name/Mesa{Lib,Demos}-$version.tar.bz2 \
$name.diff)
build() {
cd Mesa-$version
patch -Np1 -i $SRC/$name.diff
cat <<EOF >> configs/linux-dri
INSTALL_DIR = $PKG/usr
DRI_DRIVER_INSTALL_DIR = $PKG/usr/lib/dri

16
mesa3d/mesa3d.diff Normal file
View File

@ -0,0 +1,16 @@
diff -aur Mesa-6.5.1.orig/src/glx/x11/glxext.c Mesa-6.5.1/src/glx/x11/glxext.c
--- Mesa-6.5.1.orig/src/glx/x11/glxext.c 2006-08-29 23:45:28.000000000 +0200
+++ Mesa-6.5.1/src/glx/x11/glxext.c 2006-11-29 18:01:03.219605180 +0100
@@ -1016,11 +1016,11 @@
if (!_XReply(dpy, (xReply*) &reply, 0, False)) {
/* Something is busted. Punt. */
UnlockDisplay(dpy);
+ SyncHandle();
FreeScreenConfigs(priv);
return GL_FALSE;
}
- UnlockDisplay(dpy);
if (!reply.numVisuals) {
/* This screen does not support GL rendering */
UnlockDisplay(dpy);