gnome-shell r92 - trunk/scripts



Author: otaylor
Date: Sat Nov 29 21:11:31 2008
New Revision: 92
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=92&view=rev

Log:
Bug 562633 â Use GNOME_SHELL_DISABLE_TFP environment variable

Allow forcing off the texture_for_pixmap extension by environment
variable, since it is apparently buggy on old Intel cards with
certain driver versions

Based on patch from RainCT (Siegfried Gevatter)

Modified:
   trunk/scripts/launcher.py

Modified: trunk/scripts/launcher.py
==============================================================================
--- trunk/scripts/launcher.py	(original)
+++ trunk/scripts/launcher.py	Sat Nov 29 21:11:31 2008
@@ -41,6 +41,14 @@
         """Starts gnome-shell. Returns a subprocess.Popen object"""
 
         use_tfp = self.use_tfp
+
+        # Allow disabling usage of the EXT_texture_for_pixmap extension.
+        # FIXME: Move this to ClutterGlxPixmap like
+        # CLUTTER_PIXMAP_TEXTURE_RECTANGLE=disable.
+        if 'GNOME_SHELL_DISABLE_DISABLE_TFP' in os.environ and
+           os.environ['GNOME_SHELL_DISABLE_DISABLE_TFP'] != '':
+           use_tfp = False
+
         if use_tfp:
             # Check if GLX supports GL_ARB_texture_non_power_of_two; currently clutter
             # can only use GLX_EXT_texture_for_pixmap if we have that extension.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]