Accepting request 40500 from X11:XOrg

Copy from X11:XOrg/Mesa based on submit request 40500 from user sndirsch

OBS-URL: https://build.opensuse.org/request/show/40500
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Mesa?expand=0&rev=87
This commit is contained in:
OBS User autobuild 2010-05-25 08:35:35 +00:00 committed by Git OBS Bridge
commit bed34178f8
3 changed files with 24 additions and 2 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Sat May 22 16:00:55 CEST 2010 - sndirsch@suse.de
- Mesa_indirect_old_xserver_compatibility.diff (revival)
Workaround for enabling indirect rendering to older Xservers
(bnc #469280, bnc #600672).
-------------------------------------------------------------------
Sat Apr 10 22:03:00 CEST 2010 - sndirsch@suse.de

View File

@ -35,7 +35,7 @@ Obsoletes: Mesa-64bit
#
%define _version 7.8.1
Version: 7.8.1
Release: 2
Release: 3
Summary: Mesa is a 3-D graphics library with an API which is very similar to that of OpenGL
Source: MesaLib-%{_version}.tar.bz2
Source1: MesaDemos-%{_version}.tar.bz2
@ -47,7 +47,7 @@ Source5: drirc
Patch1: dri_driver_dir.diff
# to be upstreamed
Patch8: egl-buildfix.diff
# from Mesa 7.8 branch
Patch9: Mesa_indirect_old_xserver_compatibility.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
@ -116,6 +116,7 @@ rm -f include/GL/{glut.h,uglglutshapes.h,glutf90.h}
sed -i 's/REPLACE/%_lib/g' src/glx/Makefile
sed -i 's/REPLACE/%_lib/g' src/egl/drivers/dri2/Makefile
%patch8
%patch9 -p0
%build

View File

@ -0,0 +1,14 @@
--- src/glx/glxext.c.orig 2010-05-22 15:57:21.000000000 +0200
+++ src/glx/glxext.c 2010-05-22 15:57:37.000000000 +0200
@@ -820,9 +820,11 @@ __glXInitialize(Display * dpy)
dpyPriv->dri2Display = dri2CreateDisplay(dpy);
dpyPriv->driDisplay = driCreateDisplay(dpy);
}
+#if 0
if (glx_direct)
dpyPriv->driswDisplay = driswCreateDisplay(dpy);
#endif
+#endif
if (!AllocAndFetchScreenConfigs(dpy, dpyPriv)) {
__glXUnlock();