GPU/HW: Make settings update slightly safer

This commit is contained in:
Connor McLaughlin
2020-08-12 02:27:07 +10:00
parent ba5458c1c3
commit d1ee6c0da7
5 changed files with 44 additions and 16 deletions

View File

@ -145,11 +145,11 @@ void GPU_HW_Vulkan::UpdateSettings()
// this has to be done here, because otherwise we're using destroyed pipelines in the same cmdbuffer
if (framebuffer_changed)
{
RestoreGraphicsAPIState();
UpdateDepthBufferFromMaskBit();
UpdateDisplay();
ResetGraphicsAPIState();
}
RestoreGraphicsAPIState();
}
void GPU_HW_Vulkan::MapBatchVertexPointer(u32 required_vertices)