Przeglądaj źródła

Fix another format issue

sebavan 5 lat temu
rodzic
commit
ca4550ea43
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Engines/thinEngine.ts

+ 1 - 1
src/Engines/thinEngine.ts

@@ -3196,7 +3196,7 @@ export class ThinEngine {
 
         var textureType = this._getWebGLTextureType(texture.type);
         var format = this._getInternalFormat(texture.format);
-        var internalFormat = babylonInternalFormat === undefined ? this._getRGBABufferInternalSizedFormat(texture.type, format) : this._getInternalFormat(babylonInternalFormat);
+        var internalFormat = babylonInternalFormat === undefined ? this._getRGBABufferInternalSizedFormat(texture.type, texture.format) : this._getInternalFormat(babylonInternalFormat);
 
         this._unpackFlipY(texture.invertY);