Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Commit

Permalink
renderer_vulkan: Wait for window to present before destroying instance
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloMK7 committed Jul 13, 2024
1 parent c697aaf commit ed3d5a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video_core/renderer_vulkan/renderer_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ed3d5a9

Please sign in to comment.