From 1f4082c4194dcd91ab8a6e642fd3e59eb600a1c6 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Fri, 23 Apr 2021 11:13:02 +0200 Subject: [PATCH] Call `QVk_WaitAndShutdownAll()` on context shutdown. Just calling `QVk_Shutdown()` is wrong. It doesn't wait for Vulkan to finish, which can cause crashes. And it leaks some ressources which makes the GPU driver unhappy. --- src/client/refresh/vk/vk_rmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/refresh/vk/vk_rmain.c b/src/client/refresh/vk/vk_rmain.c index 5ba50f59..cc9569ec 100644 --- a/src/client/refresh/vk/vk_rmain.c +++ b/src/client/refresh/vk/vk_rmain.c @@ -1346,7 +1346,7 @@ static qboolean RE_Init( void ) static void RE_ShutdownContext( void ) { // Shutdown Vulkan subsystem - QVk_Shutdown(); + QVk_WaitAndShutdownAll(); } /*