fixed bug at cleanup and removed the surface from the swapchain struct
[vkrt] / src / main.c
index eb1cf18..36d26e1 100644 (file)
@@ -262,8 +262,8 @@ cleanup(void)
     }
 
     vk_destroy_image(&vk_core, &vk_depth_att.obj);
-    vk_destroy_renderer(&vk_core, &vk_rnd);
     vk_destroy_semaphores(&vk_core, &vk_sema);
+    vk_destroy_renderer(&vk_core, &vk_rnd);
 
     if (vk_chain.swapchain) {
         vk_destroy_swapchain(&vk_core, &vk_chain);