renderer_vulkan: Wait for window to present before destroying instance

This commit is contained in:
PabloMK7 2024-07-14 00:00:21 +02:00
parent c697aaf656
commit ed3d5a9f7f

View file

@ -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);