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-08-20 23:01:43 -07:00
parent e3699fe8f8
commit e87db99a97
2 changed files with 7 additions and 8 deletions
+1 -1
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 = {};