mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Query correct attachment for mip/slice in GL clears
This commit is contained in:
@@ -4052,7 +4052,7 @@ bool WrappedOpenGL::Serialise_glClearNamedFramebufferfi(SerialiserType &ser, GLu
|
||||
if(type == eGL_TEXTURE)
|
||||
{
|
||||
GLint mip = 0, slice = 0;
|
||||
GetFramebufferMipAndLayer(framebuffer.name, eGL_COLOR_ATTACHMENT0, &mip, &slice);
|
||||
GetFramebufferMipAndLayer(framebuffer.name, eGL_DEPTH_ATTACHMENT, &mip, &slice);
|
||||
action.copyDestinationSubresource.mip = mip;
|
||||
action.copyDestinationSubresource.slice = slice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user