mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-24 00:14:16 +00:00
renderer_vulkan: Wait for window to present before destroying instance
This commit is contained in:
parent
c697aaf656
commit
ed3d5a9f7f
1 changed files with 1 additions and 0 deletions
|
@ -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