compress-texture: when calling wine, unset $DISPLAY so it won't show a dialog box if compressing failed.

This commit is contained in:
Rudolf Polzer 2010-06-26 22:21:56 +02:00
parent fd716c102c
commit 058d912718

View File

@ -25,7 +25,7 @@ case "$tool" in
dir_dos="C:/${dir##*/}"
ext=${src##*.}
cp "$src" "$dir/src.$ext"
wine "$HOME/.wine/drive_c/Program Files/AMD/The Compressonator 1.50/TheCompressonator.exe" -convert -mipmaps "$dir_dos/src.$ext" "$dir_dos/dst.dds" $c $f "$@" -mipper BoxFilter.dll
DISPLAY= wine "$HOME/.wine/drive_c/Program Files/AMD/The Compressonator 1.50/TheCompressonator.exe" -convert -mipmaps "$dir_dos/src.$ext" "$dir_dos/dst.dds" $c $f "$@" -mipper BoxFilter.dll
mv "$dir/dst.dds" "$dst"
rm -rf "$dir"
;;