Apply framebuffer usage from dynamic rendering to secondary cmd draws

This commit is contained in:
baldurk
2025-04-09 11:25:48 +01:00
parent 42a1ace8d2
commit def9422163
@@ -4890,8 +4890,7 @@ bool WrappedVulkan::Serialise_vkCmdExecuteCommands(SerialiserType &ser, VkComman
parentCmdBufInfo.curEventID++;
// should we add framebuffer usage to the child draws.
bool framebufferUsage = parentCmdBufInfo.state.GetRenderPass() != ResourceId() &&
parentCmdBufInfo.state.GetFramebuffer() != ResourceId();
bool framebufferUsage = parentCmdBufInfo.state.ActiveRenderPass();
for(uint32_t c = 0; c < commandBufferCount; c++)
{