From 7ddf7048040f71933004b845192205cde699c641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 18 Aug 2017 17:24:03 +0200 Subject: [PATCH] Vulkan: Fix bug sometimes causing the wrong renderpass to be ended at exit, causing crashes. --- ext/native/thin3d/thin3d_vulkan.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/native/thin3d/thin3d_vulkan.cpp b/ext/native/thin3d/thin3d_vulkan.cpp index 1194267df1..4cfe3f1b51 100644 --- a/ext/native/thin3d/thin3d_vulkan.cpp +++ b/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();