Set format in fake descriptors for GL pipeline state FBO attachments

This commit is contained in:
baldurk
2025-10-21 16:46:50 +01:00
parent cb053efe77
commit 182af54086
+3
View File
@@ -1685,6 +1685,9 @@ void GLReplay::SavePipelineState(uint32_t eventId)
pipe.framebuffer.drawFBO.colorAttachments[i].resource = rm->GetOriginalID(id);
if(id != ResourceId())
pipe.framebuffer.drawFBO.colorAttachments[i].format = GetTexture(id).format;
GLenum attachment = GLenum(eGL_COLOR_ATTACHMENT0 + i);
if(pipe.framebuffer.drawFBO.colorAttachments[i].resource != ResourceId() && !rbCol[i])