Skip to content

Commit def9422

Browse files
committed
Apply framebuffer usage from dynamic rendering to secondary cmd draws
1 parent 42a1ace commit def9422

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

renderdoc/driver/vulkan/wrappers/vk_cmd_funcs.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4890,8 +4890,7 @@ bool WrappedVulkan::Serialise_vkCmdExecuteCommands(SerialiserType &ser, VkComman
48904890
parentCmdBufInfo.curEventID++;
48914891

48924892
// should we add framebuffer usage to the child draws.
4893-
bool framebufferUsage = parentCmdBufInfo.state.GetRenderPass() != ResourceId() &&
4894-
parentCmdBufInfo.state.GetFramebuffer() != ResourceId();
4893+
bool framebufferUsage = parentCmdBufInfo.state.ActiveRenderPass();
48954894

48964895
for(uint32_t c = 0; c < commandBufferCount; c++)
48974896
{

0 commit comments

Comments
 (0)