Permalink
Browse files

Vulkan: Fix bug sometimes causing the wrong renderpass to be ended at…

… exit, causing crashes.
  • Loading branch information...
hrydgard committed Aug 18, 2017
1 parent 750c124 commit 7ddf7048040f71933004b845192205cde699c641
Showing with 1 addition and 7 deletions.
  1. +1 −7 ext/native/thin3d/thin3d_vulkan.cpp
@@ -914,13 +914,7 @@ void VKContext::WaitRenderCompletion(Framebuffer *fbo) {
}
void VKContext::EndFrame() {
if (curRenderPass_) {
// ELOG("EndFrame: Ending render pass");
vulkan_->EndSurfaceRenderPass();
curRenderPass_ = VK_NULL_HANDLE;
curFramebuffer_ = VK_NULL_HANDLE;
cmd_ = nullptr;
}
EndCurrentRenderpass();
if (cmd_)
Crash();

0 comments on commit 7ddf704

Please sign in to comment.