commit | 7bd166668f8c90216f8db85254cfd420134503fc | [log] [tgz] |
---|---|---|
author | Jamie Madill <jmadill@chromium.org> | Sat Oct 28 19:40:50 2017 -0400 |
committer | Jamie Madill <jmadill@chromium.org> | Thu Nov 02 13:24:07 2017 +0000 |
tree | c20d3ff5f9b76a1ee1052c3a791f09eaed3c16c5 | |
parent | 640d597d88906f10d187235447309ba38c6705b6 [diff] [blame] |
Vulkan: Allow in-flight Framebuffer changes. This allows the app to alter Framebuffer attachments while there are existing command buffers using the resources and attachments. BUG=angleproject:2200 Change-Id: I3298dafef5e3bd2c6efda8e8a32a6cf7febc13dc Reviewed-on: https://chromium-review.googlesource.com/742370 Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/renderer/vulkan/RendererVk.cpp b/src/libANGLE/renderer/vulkan/RendererVk.cpp index 464daca..494d624 100644 --- a/src/libANGLE/renderer/vulkan/RendererVk.cpp +++ b/src/libANGLE/renderer/vulkan/RendererVk.cpp
@@ -813,4 +813,12 @@ } } +void RendererVk::onReleaseRenderPass(const FramebufferVk *framebufferVk) +{ + if (mCurrentRenderPassFramebuffer == framebufferVk) + { + endRenderPass(); + } +} + } // namespace rx