From 215192265c7b8a5506ffe1a08c914d388054a0b6 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 13 Sep 2011 13:15:46 +0200 Subject: [PATCH 1/1] shader audit script fixes (don't report same shader twice) --- scripts/shader-audit.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/shader-audit.sh b/scripts/shader-audit.sh index cf0beec9..ccb5f64b 100755 --- a/scripts/shader-audit.sh +++ b/scripts/shader-audit.sh @@ -89,7 +89,7 @@ use_texture() if [ x"$3" = x"map" ]; then lasttex=$2 - if [ -n "$AUDIT_ALPHACHANNELS" ]; then + if [ -n "$AUDIT_ALPHACHANNELS" ] && [ x"$offsetmapping_match8" != x"firststagedone" ]; then if [ -f "../${2}_norm.tga" ] || [ -f "../${2}_norm.png" ] || [ -f "../${2}_norm.jpg" ]; then case "$offsetmapping_match8" in '') # no dpoffsetmapping keyword @@ -292,6 +292,7 @@ parse_shaderstage() *) use_texture "$parsing_shader" "`normalize "$A1"`" map ss_map="`normalize "$A1"`" + offsetmapping_match8=firststagedone ;; esac ;; -- 2.39.2