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:
baldurk
2018-04-05 16:23:20 +01:00
parent 2974ca8d12
commit 6e5ee75215
@@ -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));
}