more fixes
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:39:16 +0000 (12:39 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 3 Sep 2011 10:39:16 +0000 (12:39 +0200)
scripts/shader-audit.sh

index 4a0bb37..5de24bc 100755 (executable)
@@ -90,7 +90,7 @@ use_texture()
        if [ x"$3" = x"map" ]; then
                lasttex=$2
                if [ -n "$AUDIT_ALPHACHANNELS" ]; then
-                       if [ -f "../${2}_norm.tga" ]; then
+                       if [ -f "../${2}_norm.tga" ] || [ -f "../${2}_norm.png" ] || [ -f "../${2}_norm.jpg" ]; then
                                case "$offsetmapping_match8" in
                                        '') # no dpoffsetmapping keyword
                                                getstats "../${2}_norm.tga" || getstats "../${2}_norm.png" || getstats "../${2}_norm.jpg"