mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-14 18:46:48 +00:00
When binding framebuffers, GL_FRAMEBUFFER target sets read and draw FBs
* This is in contrast to most other framebuffer functions, where GL_FRAMEBUFFER acts as an alias for GL_DRAW_FRAMEBUFFER.
This commit is contained in:
@@ -1491,7 +1491,8 @@ void WrappedOpenGL::glBindFramebuffer(GLenum target, GLuint framebuffer)
|
||||
if(target == eGL_DRAW_FRAMEBUFFER || target == eGL_FRAMEBUFFER)
|
||||
GetCtxData().m_DrawFramebufferRecord =
|
||||
GetResourceManager()->GetResourceRecord(FramebufferRes(GetCtx(), framebuffer));
|
||||
else
|
||||
|
||||
if(target == eGL_READ_FRAMEBUFFER || target == eGL_FRAMEBUFFER)
|
||||
GetCtxData().m_ReadFramebufferRecord =
|
||||
GetResourceManager()->GetResourceRecord(FramebufferRes(GetCtx(), framebuffer));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user