소스 검색

Fix Texture RGB WebGL1

sebavan 5 년 전
부모
커밋
8923e6e3c8
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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;