Sfoglia il codice sorgente

Merge pull request #7330 from sebavan/master

Fix Texture RGB WebGL1
sebavan 5 anni fa
parent
commit
d82b19a147
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      src/Engines/thinEngine.ts

+ 2 - 0
src/Engines/thinEngine.ts

@@ -4013,6 +4013,8 @@ export class ThinEngine {
                         return this._gl.LUMINANCE;
                     case Constants.TEXTUREFORMAT_LUMINANCE_ALPHA:
                         return this._gl.LUMINANCE_ALPHA;
+                    case Constants.TEXTUREFORMAT_RGB:
+                        return this._gl.RGB;
                 }
             }
             return this._gl.RGBA;