diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-11-03 07:26:28 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-11-04 10:46:16 -0600 |
| commit | a34c324551b1bd87b2298fd8f4b9554f5943f501 (patch) | |
| tree | 9d683ceba4023395a597de20e20f23f3d28ee04f | |
| parent | 5d877874478dc2751cf158098aa8f27f44c6411d (diff) | |
| download | usermoji-a34c324551b1bd87b2298fd8f4b9554f5943f501.tar.xz | |
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.
| -rw-r--r-- | layers/core_validation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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); } } |
