mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-03 12:25:47 +00:00
Use correct attachment when querying framebuffer mip/layer on clear
This commit is contained in:
@@ -3651,7 +3651,7 @@ bool WrappedOpenGL::Serialise_glClearNamedFramebufferfv(SerialiserType &ser,
|
||||
if(type == eGL_TEXTURE)
|
||||
{
|
||||
GLint mip = 0, slice = 0;
|
||||
GetFramebufferMipAndLayer(framebuffer.name, eGL_COLOR_ATTACHMENT0, &mip, &slice);
|
||||
GetFramebufferMipAndLayer(framebuffer.name, attachName, &mip, &slice);
|
||||
draw.copyDestinationSubresource.mip = mip;
|
||||
draw.copyDestinationSubresource.slice = slice;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user