mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 06:05:45 +00:00
make glClear always a drawcall
This commit is contained in:
committed by
Baldur Karlsson
parent
f64cba8e91
commit
f2f8578a19
@@ -4538,21 +4538,21 @@ bool WrappedOpenGL::Serialise_glClear(SerialiserType &ser, GLbitfield mask)
|
||||
dstId = res_id;
|
||||
}
|
||||
}
|
||||
|
||||
draw.copyDestination = GetResourceManager()->GetOriginalID(dstId);
|
||||
|
||||
if(m_Textures[dstId].curType != eGL_RENDERBUFFER)
|
||||
{
|
||||
GLuint curDrawFBO = 0;
|
||||
GL.glGetIntegerv(eGL_DRAW_FRAMEBUFFER_BINDING, (GLint *)&curDrawFBO);
|
||||
GLint mip = 0, slice = 0;
|
||||
GetFramebufferMipAndLayer(curDrawFBO, eGL_COLOR_ATTACHMENT0, &mip, &slice);
|
||||
draw.copyDestinationSubresource.mip = mip;
|
||||
draw.copyDestinationSubresource.slice = slice;
|
||||
|
||||
AddDrawcall(draw, true);
|
||||
}
|
||||
}
|
||||
|
||||
draw.copyDestination = GetResourceManager()->GetOriginalID(dstId);
|
||||
|
||||
if(m_Textures[dstId].curType != eGL_RENDERBUFFER)
|
||||
{
|
||||
GLuint curDrawFBO = 0;
|
||||
GL.glGetIntegerv(eGL_DRAW_FRAMEBUFFER_BINDING, (GLint *)&curDrawFBO);
|
||||
GLint mip = 0, slice = 0;
|
||||
GetFramebufferMipAndLayer(curDrawFBO, eGL_COLOR_ATTACHMENT0, &mip, &slice);
|
||||
draw.copyDestinationSubresource.mip = mip;
|
||||
draw.copyDestinationSubresource.slice = slice;
|
||||
}
|
||||
|
||||
AddDrawcall(draw, true);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user