mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-27 15:30:35 +00:00
Vulkan: Fix bug sometimes causing the wrong renderpass to be ended at exit, causing crashes.
This commit is contained in:
parent
750c124c33
commit
7ddf704804
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user