Sfoglia il codice sorgente

Merge pull request #7333 from sebavan/master

Fix another format issue
sebavan 5 anni fa
parent
commit
02c84c0a31
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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);