Fix up the compiz-gtk script
This commit is contained in:
parent
bb235f48d9
commit
c734a6f942
@ -5,13 +5,12 @@ function runCompiz() {
|
|||||||
exec compiz --ignore-desktop-hints --always-swap glib gconf gnomecompat $@
|
exec compiz --ignore-desktop-hints --always-swap glib gconf gnomecompat $@
|
||||||
}
|
}
|
||||||
|
|
||||||
DIRECT=`glxinfo | grep "direct rendering: " | head -n 1 | cut -d " " -f 3`
|
|
||||||
ISSW=`glxinfo | grep "Software Rasterizer" -c`
|
ISSW=`glxinfo | grep "Software Rasterizer" -c`
|
||||||
|
|
||||||
# Try with direct rendering
|
# Try with direct rendering
|
||||||
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
||||||
|
|
||||||
if ( [ $HAVE3D == "Yes" ] && [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
||||||
runCompiz $@
|
runCompiz $@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -20,7 +19,7 @@ export LIBGL_ALWAYS_INDIRECT=1
|
|||||||
|
|
||||||
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
HAVETFP=`glxinfo | grep texture_from_pixmap -c`
|
||||||
|
|
||||||
if ( [ $DIRECT == "Yes" ] && [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
if ( [ $ISSW == 0 ] && [ $HAVETFP -gt 2 ] ); then
|
||||||
runCompiz $@
|
runCompiz $@
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@ URL: http://www.go-compiz.org
|
|||||||
License: GPLv2+ and LGPLv2+ and MIT
|
License: GPLv2+ and LGPLv2+ and MIT
|
||||||
Group: User Interface/Desktops
|
Group: User Interface/Desktops
|
||||||
Version: 0.8.2
|
Version: 0.8.2
|
||||||
Release: 10%{?dist}
|
Release: 11%{?dist}
|
||||||
|
|
||||||
Summary: OpenGL window and compositing manager
|
Summary: OpenGL window and compositing manager
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
@ -364,6 +364,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Aug 22 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-11
|
||||||
|
- Fix up the compiz-gtk script
|
||||||
|
|
||||||
* Fri Aug 07 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-10
|
* Fri Aug 07 2009 Adel Gadllah <adel.gadllah@gmail.com> - 0.8.2-10
|
||||||
- Enable direct rendering and always-swap by default
|
- Enable direct rendering and always-swap by default
|
||||||
- Tearing free compiz for INTEL cards ;)
|
- Tearing free compiz for INTEL cards ;)
|
||||||
|
Loading…
Reference in New Issue
Block a user