瀏覽代碼

Comment tweak...

...while reviewing GetTextureData() functionality on OpenGL ES 2.0
pull/382/head
Ray San 7 年之前
父節點
當前提交
31c8c86d8e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/rlgl.c

+ 1
- 1
src/rlgl.c 查看文件

@ -2202,7 +2202,7 @@ void *rlReadTexturePixels(Texture2D texture)
glBindFramebuffer(GL_FRAMEBUFFER, fbo.id);
glBindTexture(GL_TEXTURE_2D, 0);
// Attach our texture to FBO -> Texture must be RGB
// Attach our texture to FBO -> Texture must be RGBA
// NOTE: Previoust attached texture is automatically detached
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.id, 0);

Loading…
取消
儲存