Selaa lähdekoodia

Added missing extension check for texture format

David Catuhe 8 vuotta sitten
vanhempi
commit
dec7449f18
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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 {