rpms/glest/FC-6 glest.sh,1.1,1.2 glest.spec,1.4,1.5

Aurelien Bompard (abompard) fedora-extras-commits at redhat.com
Mon Dec 18 22:47:13 UTC 2006


Author: abompard

Update of /cvs/extras/rpms/glest/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv8357/FC-6

Modified Files:
	glest.sh glest.spec 
Log Message:
fix launch script to detect if shadows must be turned off


Index: glest.sh
===================================================================
RCS file: /cvs/extras/rpms/glest/FC-6/glest.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- glest.sh	27 Nov 2006 20:05:47 -0000	1.1
+++ glest.sh	18 Dec 2006 22:46:43 -0000	1.2
@@ -67,6 +67,11 @@
   if [ -f $GLEST_DATA_DIR/data/lang/$lang ]; then
     sed -i -e s/Lang=.*/Lang=$lang/g glest.ini
   fi
+  max_texture_units="`glxinfo -l | awk '/GL_MAX_TEXTURE_UNITS_ARB/ { print $3 }'`"
+  if [ -n "$max_texture_units" -a "$max_texture_units" -lt 3 ]; then
+    echo "Your video card does not support enough texture units, turning off shadows..."
+    sed -i -e "s/Shadows=.*/Shadows=Disabled/g" glest.ini
+  fi
 else
   # convert configuration from glest 1.1 to glest 1.2
   grep -q -e ChangeDisplay -e PathFindLevelsMax glest.ini


Index: glest.spec
===================================================================
RCS file: /cvs/extras/rpms/glest/FC-6/glest.spec,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- glest.spec	14 Dec 2006 14:46:28 -0000	1.4
+++ glest.spec	18 Dec 2006 22:46:43 -0000	1.5
@@ -1,6 +1,6 @@
 Name:           glest
 Version:        2.0.0
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        3D real time strategy game
 
 Group:          Amusements/Games
@@ -94,6 +94,9 @@
 
 
 %changelog
+* Mon Dec 18 2006 Aurelien Bompard <abompard at fedoraproject.org> 2.0.0-4
+- fix launch script to detect if shadows must be turned off
+
 * Thu Dec 14 2006 Aurelien Bompard <abompard at fedoraproject.org> 2.0.0-3
 - Does not work on PPC yet, ExcludeArch it.
 




More information about the fedora-extras-commits mailing list