Add var to fix javascript error in Firefox.
Merge pull request #589 from djg/fix-compressed-texture-s3tc-pixel-checks

Add var to fix javascript error in Firefox.