mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
For backwards compatibility, bind fake backbuffer FBO instead of 0
* In newer captures we should always serialise an actual correct ID for the backbuffer, but in older captures an empty resource ID will be serialised, so we should pick this up and bind the backbuffer.
This commit is contained in:
@@ -1439,6 +1439,8 @@ bool WrappedOpenGL::Serialise_glBindFramebuffer(SerialiserType &ser, GLenum targ
|
||||
|
||||
if(IsReplayingAndReading())
|
||||
{
|
||||
if(framebuffer.name == 0)
|
||||
framebuffer.name = m_FakeBB_FBO;
|
||||
m_Real.glBindFramebuffer(target, framebuffer.name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user