mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-26 17:37:19 +00:00
renderer_vulkan: Wait for window to present before destroying instance
This commit is contained in:
parent
c697aaf656
commit
ed3d5a9f7f
|
@ -73,6 +73,7 @@ RendererVulkan::RendererVulkan(Core::System& system, Pica::PicaCore& pica_,
|
|||
RendererVulkan::~RendererVulkan() {
|
||||
vk::Device device = instance.GetDevice();
|
||||
scheduler.Finish();
|
||||
main_window.WaitPresent();
|
||||
device.waitIdle();
|
||||
|
||||
device.destroyShaderModule(present_vertex_shader);
|
||||
|
|
Loading…
Reference in a new issue