Vulkan: Fix bug sometimes causing the wrong renderpass to be ended at exit, causing crashes.

This commit is contained in:
Henrik Rydgård 2017-08-18 17:24:03 +02:00
parent 750c124c33
commit 7ddf704804

View File

@ -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();