File compiz-manager-avoid-sw-rast-bug-479060.diff of Package compiz-manager
Index: compiz-manager
===================================================================
--- compiz-manager.orig
+++ compiz-manager
@@ -177,6 +177,19 @@ check_tfp()
fi
}
+# Check for Software Rasterizer
+check_sw()
+{
+ verbose "Checking for software rasterizer: "
+ if $GLXINFO 2>/dev/null | egrep -q 'Software Rasterizer' ; then
+ verbose "present. \n"
+ return 1;
+ else
+ verbose "not present. \n"
+ return 0;
+ fi
+}
+
# Check wether the composite extension is present
check_composite()
{
@@ -360,7 +373,7 @@ if ! check_xgl; then
fi
# check if we have the required bits to run compiz and if not,
# fallback
- if ! check_tfp || ! check_npot_texture || ! check_composite || ! check_texture_size; then
+ if ! check_sw || ! check_tfp || ! check_npot_texture || ! check_composite || ! check_texture_size; then
abort_with_fallback_wm
fi