diff --git a/utils/optimize_textures.sh b/utils/optimize_textures.sh
index 2f9a6da57b..4dbe93ae52 100644
--- a/utils/optimize_textures.sh
+++ b/utils/optimize_textures.sh
@@ -3,4 +3,4 @@
 # Colors with 0 alpha need to be preserved, because opaque leaves ignore alpha.
 # For that purpose, the use of indexed colors is disabled (-nc).
 
-find -name '../*.png' -print0 | xargs -0 optipng -o7 -zm1-9 -nc -strip all -clobber
+find .. -name '*.png' -print0 | xargs -0 optipng -o7 -zm1-9 -nc -strip all -clobber