Sfoglia il codice sorgente

Added missing extension check for texture format

David Catuhe 8 anni fa
parent
commit
dec7449f18
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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 {