Release Linux NGX before destroying the Vulkan device

This commit is contained in:
Michael Schienbein
2026-11-09 14:21:16 -06:00
committed by chrg6
parent 4cb1a56e6c
commit 033bf85625
4 changed files with 113 additions and 9 deletions

View File

@@ -465,6 +465,7 @@ static long g_errors_total; // outlives the device so the probe can print it
static void destroy_all(void) {
gfx_window_release_vk();
if (g_vk.device) vkDeviceWaitIdle(g_vk.device);
if (g_vk.device) vk_dlaa_release(); // the DLSS features and NGX: the allocator and the device still live
if (g_vk.device) vk_astc_release();
if (g_vk.device) vk_crumbs_release();
if (g_vk.timeline) vkDestroySemaphore(g_vk.device, g_vk.timeline, NULL);