Remove ownership of SDL's vulkan-surface

This surface is managed by SDL itself, so there is no need to keep it in
a Unique handle for us to delete.  Fixes the bug where vulkan crashes
during shutdown.
This commit is contained in:
Wunkolo 2023-07-25 22:53:47 -07:00
parent e3699fe8f8
commit e87db99a97
2 changed files with 7 additions and 8 deletions

View file

@ -10,7 +10,7 @@ class RendererVK final : public Renderer {
vk::UniqueInstance instance = {};
vk::UniqueDebugUtilsMessengerEXT debugMessenger = {};
vk::UniqueSurfaceKHR surface = {};
vk::SurfaceKHR surface = {};
vk::PhysicalDevice physicalDevice = {};