shaped-texture: Fix unused variable warning

(cherry picked from commit 101a13c86daaea0a6cd0b7421f7a186fbf4ca3f9)