mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-06 11:28:17 +00:00
Comment tweak...
...while reviewing GetTextureData() functionality on OpenGL ES 2.0
This commit is contained in:
@@ -2202,7 +2202,7 @@ void *rlReadTexturePixels(Texture2D texture)
|
|||||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo.id);
|
glBindFramebuffer(GL_FRAMEBUFFER, fbo.id);
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
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
|
// NOTE: Previoust attached texture is automatically detached
|
||||||
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.id, 0);
|
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.id, 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user