瀏覽代碼

Merge 06c5b17617 into 242dfee5ef

pull/5500/merge
Scott Campbell 1 天之前
committed by GitHub
父節點
當前提交
ae5b104ce1
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      src/rlgl.h

+ 5
- 1
src/rlgl.h 查看文件

@ -3426,11 +3426,15 @@ unsigned int rlLoadTextureDepth(int width, int height, bool useRenderBuffer)
#if (defined(GRAPHICS_API_OPENGL_ES2) || defined(GRAPHICS_API_OPENGL_ES3))
// WARNING: WebGL platform requires unsized internal format definition (GL_DEPTH_COMPONENT)
// while other platforms using OpenGL ES 2.0 require/support sized internal formats depending on the GPU capabilities
if (o">!RLGL.ExtSupported.texDepthWebGL || useRenderBuffer)
if (RLGL.ExtSupported.texDepthWebGL || useRenderBuffer)
{
if (RLGL.ExtSupported.maxDepthBits == 32) glInternalFormat = GL_DEPTH_COMPONENT32_OES;
else if (RLGL.ExtSupported.maxDepthBits == 24) glInternalFormat = GL_DEPTH_COMPONENT24_OES;
#if !defined(GRAPHICS_API_OPENGL_ES3)
else if (useRenderBuffer) glInternalFormat = GL_DEPTH_COMPONENT16;
#else
else glInternalFormat = GL_DEPTH_COMPONENT16;
#endif
}
#endif

Loading…
取消
儲存