From a34c324551b1bd87b2298fd8f4b9554f5943f501 Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Thu, 3 Nov 2016 07:26:28 -0600 Subject: layers:Set framebuffer for secondary cmd buffer If a secondary cmd buffer is inheriting state, need to update the activeFramebuffer in same way we update active renderPass and subpass. --- layers/core_validation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 06f8aa2d..e0354451 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -7349,6 +7349,7 @@ BeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBeginInfo (cb_node->beginInfo.flags & VK_COMMAND_BUFFER_USAGE_RENDER_PASS_CONTINUE_BIT)) { cb_node->activeRenderPass = getRenderPassState(dev_data, cb_node->beginInfo.pInheritanceInfo->renderPass); cb_node->activeSubpass = cb_node->beginInfo.pInheritanceInfo->subpass; + cb_node->activeFramebuffer = cb_node->beginInfo.pInheritanceInfo->framebuffer; cb_node->framebuffers.insert(cb_node->beginInfo.pInheritanceInfo->framebuffer); } } -- cgit v1.2.3