Explorar o código

Merge pull request #7330 from sebavan/master

Fix Texture RGB WebGL1
sebavan %!s(int64=5) %!d(string=hai) anos
pai
achega
d82b19a147
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;