8
8
# Check whether the GLX_EXT_texture_from_pixmap extension is available in
9
9
# direct or indirect rendering contexts. If it is available only in indirect
10
10
# rendering contexts, force compiz to use indirect rendering.
11
if test `$GLXINFO 2> /dev/null | grep -c $EXT_TFP` -lt 3; then
12
echo "$EXT_TFP is not available with direct rendering."
14
export LIBGL_ALWAYS_INDIRECT=1
15
if test `$GLXINFO 2> /dev/null | grep -c $EXT_TFP` -lt 3; then
16
echo "$EXT_TFP is not available with indirect rendering. Aborting!"
17
unset LIBGL_ALWAYS_INDIRECT
20
echo "$EXT_TFP is available with indirect rendering."
23
echo "$EXT_TFP is available with direct rendering."
11
#if test `$GLXINFO 2> /dev/null | grep -c $EXT_TFP` -lt 3; then
12
# echo "$EXT_TFP is not available with direct rendering."
14
# export LIBGL_ALWAYS_INDIRECT=1
15
# if test `$GLXINFO 2> /dev/null | grep -c $EXT_TFP` -lt 3; then
16
# echo "$EXT_TFP is not available with indirect rendering. Aborting!"
17
# unset LIBGL_ALWAYS_INDIRECT
20
# echo "$EXT_TFP is available with indirect rendering."
23
# echo "$EXT_TFP is available with direct rendering."
26
26
# start the gtk-window-decorator if present
27
if [ -x /usr/bin/gtk-window-decorator ]; then
28
/usr/bin/gtk-window-decorator --replace &
27
#if [ -x /usr/bin/gtk-window-decorator ]; then
28
# /usr/bin/gtk-window-decorator --replace &
31
31
# load the gconf plugin if present
32
32
if [ -f /usr/lib/compiz/libgconf.so ]; then