mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +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() {
|
RendererVulkan::~RendererVulkan() {
|
||||||
vk::Device device = instance.GetDevice();
|
vk::Device device = instance.GetDevice();
|
||||||
scheduler.Finish();
|
scheduler.Finish();
|
||||||
|
main_window.WaitPresent();
|
||||||
device.waitIdle();
|
device.waitIdle();
|
||||||
|
|
||||||
device.destroyShaderModule(present_vertex_shader);
|
device.destroyShaderModule(present_vertex_shader);
|
||||||
|
|
Loading…
Reference in a new issue