mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +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