Forráskód Böngészése

Added missing extension check for texture format

David Catuhe 8 éve
szülő
commit
dec7449f18
1 módosított fájl, 1 hozzáadás és 0 törlés
  1. 1 0
      src/babylon.engine.ts

+ 1 - 0
src/babylon.engine.ts

@@ -2000,6 +2000,7 @@
                 var lastDot = url.lastIndexOf('.')
                 extension = url.substring(lastDot).toLowerCase();
                 if (this._textureFormatInUse && !fromData && !scene.database) {
+                    extension = this._textureFormatInUse;
                     url = url.substring(0, lastDot) + this._textureFormatInUse;
                 }
             } else {