]> git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/compress-texture
point at SDL2 for OS X and Windows.
[xonotic/xonotic.git] / misc / tools / compress-texture
index 5141b92d04a0da6ec0f1aff748190114e48a12ad..9e3b58e5e26719f9d25a33644ba43f58c198cf88 100755 (executable)
@@ -46,7 +46,7 @@ esac
 
 if [ -n "$fourcchack" ]; then
        fourcchack_dir=`mktemp -d`
-       convert "$src" -fx "u*u.a" "$fourcchack_dir/src.$ext"
+       convert "$src" -fx "u*u.a" -type TrueColorMatte "$fourcchack_dir/src.$ext"
        src="$fourcchack_dir/src.$ext"
 fi
 
@@ -91,7 +91,7 @@ case "$tool" in
                        dxt3) f="-t DXT3" ;;
                        dxt5) f="-t DXT5" ;;
                esac
-               s2tc $f "$@" -i "$src" -o "$dst"
+               s2tc_compress $f "$@" -i "$src" -o "$dst"
                ;;
 esac