]> de.git.xonotic.org Git - xonotic/xonotic.git/blobdiff - misc/tools/compress-texture
fix some text
[xonotic/xonotic.git] / misc / tools / compress-texture
index 93d5c49404b45a1a52d5c72ac071062a63618cd6..efacb863c21a4c11568bc90b96b8fbe172c33470 100755 (executable)
@@ -16,6 +16,17 @@ f=
 fourcchack=
 case "$tool" in
        compressonator-dxtc)
+               # we still have to preprocess the image to premultiply alpha, as it seems
+               case "$format" in
+                       dxt2)
+                               fourcchack=DXT2
+                               format=dxt2
+                               ;;
+                       dxt4)
+                               fourcchack=DXT4
+                               format=dxt4
+                               ;;
+               esac
                ;;
        *)
                case "$format" in