Workaround for half-transparent windows when running blender-softwaregl
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Nov 2011 07:28:18 +0000 (07:28 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 15 Nov 2011 07:28:18 +0000 (07:28 +0000)
and compiz effects are enabled.

Thanks to Nicholas Bishop for pointing in possible solution of this issue.

release/bin/blender-softwaregl

index 3cd96d2ff348eb2515c9474c799407c319b44452..970a787076025085eb594cae831a18d4b26963ef 100755 (executable)
@@ -15,7 +15,10 @@ if [ -n "$LD_LIBRARY_PATH_64" ]; then
     LD_LIBRARY_PATH_64=${BF_DIST_BIN}/lib:${LD_LIBRARY_PATH_64}
 fi
 
-export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD
+# Workaround for half-transparent windows when compiz is enabled
+XLIB_SKIP_ARGB_VISUALS=1
+
+export LD_LIBRARY_PATH LD_LIBRARYN32_PATH LD_LIBRARYN64_PATH LD_LIBRARY_PATH_64 LD_PRELOAD XLIB_SKIP_ARGB_VISUALS
 
 "$BF_DIST_BIN/$BF_PROGRAM" ${1+"$@"}
 exitcode=$?