mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-11 18:17:16 +00:00
Fix up fetching layer/mip for FBOs on replay
This commit is contained in:
@@ -617,6 +617,16 @@ void Serialiser::Serialise(const char *name, GLPipelineState::FrameBuffer::Blend
|
||||
SIZE_CHECK(GLPipelineState::FrameBuffer::BlendState, 24);
|
||||
}
|
||||
|
||||
template<>
|
||||
void Serialiser::Serialise(const char *name, GLPipelineState::FrameBuffer::Attachment &el)
|
||||
{
|
||||
Serialise("", el.Obj);
|
||||
Serialise("", el.Layer);
|
||||
Serialise("", el.Mip);
|
||||
|
||||
SIZE_CHECK(GLPipelineState::FrameBuffer::Attachment, 16);
|
||||
}
|
||||
|
||||
template<>
|
||||
void Serialiser::Serialise(const char *name, GLPipelineState::FrameBuffer &el)
|
||||
{
|
||||
@@ -625,8 +635,6 @@ void Serialiser::Serialise(const char *name, GLPipelineState::FrameBuffer &el)
|
||||
|
||||
Serialise("", el.m_DrawFBO.Obj);
|
||||
Serialise("", el.m_DrawFBO.Color);
|
||||
Serialise("", el.m_ReadFBO.Layer);
|
||||
Serialise("", el.m_ReadFBO.Mip);
|
||||
Serialise("", el.m_DrawFBO.Depth);
|
||||
Serialise("", el.m_DrawFBO.Stencil);
|
||||
Serialise("", el.m_DrawFBO.DrawBuffers);
|
||||
@@ -634,8 +642,6 @@ void Serialiser::Serialise(const char *name, GLPipelineState::FrameBuffer &el)
|
||||
|
||||
Serialise("", el.m_ReadFBO.Obj);
|
||||
Serialise("", el.m_ReadFBO.Color);
|
||||
Serialise("", el.m_ReadFBO.Layer);
|
||||
Serialise("", el.m_ReadFBO.Mip);
|
||||
Serialise("", el.m_ReadFBO.Depth);
|
||||
Serialise("", el.m_ReadFBO.Stencil);
|
||||
Serialise("", el.m_ReadFBO.DrawBuffers);
|
||||
|
||||
Reference in New Issue
Block a user