Explorar o código

Optimize comparison

Alex Bogartz %!s(int64=5) %!d(string=hai) anos
pai
achega
b5ea15e794
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Engines/thinEngine.ts

+ 1 - 1
src/Engines/thinEngine.ts

@@ -188,7 +188,7 @@ export class ThinEngine {
         const skipCompression = (): boolean => {
             return ThinEngine.ExcludedCompressedTextures.some((entry) => {
                 const strRegExPattern: string = '\\b' + entry + '\\b';
-                return (url && url === entry) || (url && url.match(new RegExp(strRegExPattern, 'g')));
+                return (url && (url === entry || url.match(new RegExp(strRegExPattern, 'g'))));
             });
         };
         return skipCompression() ? null : textureFormatInUse;