Explorar o código

Added missing extension check for texture format

David Catuhe %!s(int64=8) %!d(string=hai) anos
pai
achega
dec7449f18
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 {