Bug 774134 - Support S3 texture compression with Mesa drivers - r=bjacob
authorMarco Castelluccio <mar.castelluccio@studenti.unina.it>
Mon, 16 Jul 2012 11:36:03 -0400
changeset 99418 c81fb77dcb08c08d86f787e962ffee044d749eb1
parent 99417 999784d7571873c90866c9842b5d7869df065143
child 99419 170854ffe1635c6e06f564871c689458948eba90
push id11988
push userbjacob@mozilla.com
push dateMon, 16 Jul 2012 15:36:14 +0000
treeherdermozilla-inbound@c81fb77dcb08 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs774134
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 774134 - Support S3 texture compression with Mesa drivers - r=bjacob
gfx/gl/GLContextProviderGLX.cpp
--- a/gfx/gl/GLContextProviderGLX.cpp
+++ b/gfx/gl/GLContextProviderGLX.cpp
@@ -66,16 +66,19 @@ GLXLibrary::EnsureInitialized()
     }
 
     // Don't repeatedly try to initialize.
     if (mTriedInitializing) {
         return false;
     }
     mTriedInitializing = true;
 
+    // Force enabling s3 texture compression (http://dri.freedesktop.org/wiki/S3TC)
+    PR_SetEnv("force_s3tc_enable=true");
+
     if (!mOGLLibrary) {
         // see e.g. bug 608526: it is intrinsically interesting to know whether we have dynamically linked to libGL.so.1
         // because at least the NVIDIA implementation requires an executable stack, which causes mprotect calls,
         // which trigger glibc bug http://sourceware.org/bugzilla/show_bug.cgi?id=12225
 #ifdef __OpenBSD__
         const char *libGLfilename = "libGL.so";
 #else
         const char *libGLfilename = "libGL.so.1";