mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
Fix depth component constant not exist in WebGL issue (#5995)
This commit is contained in:
@@ -162,7 +162,7 @@ function GFXFormatToWebGLInternalFormat (format: GFXFormat, gl: WebGLRenderingCo
|
||||
case GFXFormat.R5G6B5: return gl.RGB565;
|
||||
case GFXFormat.RGB5A1: return gl.RGB5_A1;
|
||||
case GFXFormat.RGBA4: return gl.RGBA4;
|
||||
case GFXFormat.D16: return gl.DEPTH_COMPONENT;
|
||||
case GFXFormat.D16: return gl.DEPTH_COMPONENT16;
|
||||
case GFXFormat.D16S8: return gl.DEPTH_STENCIL;
|
||||
case GFXFormat.D24: return gl.DEPTH_COMPONENT;
|
||||
case GFXFormat.D24S8: return gl.DEPTH_STENCIL;
|
||||
|
||||
Reference in New Issue
Block a user