Direct rendering does not mean that we have hw 3D, so fix that check
This commit is contained in:
parent
0b9ccfb026
commit
12e375f22b
@ -5,7 +5,8 @@ function runCompiz() {
|
||||
exec compiz --ignore-desktop-hints glib gconf $@
|
||||
}
|
||||
|
||||
HAVE3D=`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`
|
||||
DIRECT=`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`
|
||||
ISSW=`glxinfo | grep "Software Rasterizer" -c`
|
||||
|
||||
# Disabled for now, does not work as expected
|
||||
#HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
||||
@ -19,7 +20,7 @@ export LIBGL_ALWAYS_INDIRECT=1
|
||||
|
||||
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
||||
|
||||
if ( [ $HAVE3D == "Yes" ] && [ $HAVETFP -gt 2 ] ); then
|
||||
if ( [ $DIRECT == "Yes" ] && [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
||||
runCompiz $@
|
||||
fi
|
||||
|
||||
|
@ -14,7 +14,7 @@ URL: http://www.go-compiz.org
|
||||
License: GPLv2+ and LGPLv2+ and MIT
|
||||
Group: User Interface/Desktops
|
||||
Version: 0.7.8
|
||||
Release: 17%{?dist}
|
||||
Release: 18%{?dist}
|
||||
|
||||
Summary: OpenGL window and compositing manager
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
@ -388,6 +388,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Apr 05 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.7.8-18
|
||||
- Direct rendering does not mean that we have hw 3D
|
||||
|
||||
* Mon Mar 16 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.7.8-17
|
||||
- Fix compiz-gtk script RH #490383
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user