From e11f3036d8066849c92fd4d3baaf81f721b756bd Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 15 Jul 2025 12:37:35 +0100 Subject: [PATCH] Destroy query pools on shutdown --- util/test/demos/vk/vk_ray_query.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util/test/demos/vk/vk_ray_query.cpp b/util/test/demos/vk/vk_ray_query.cpp index 7ef4cbfa4..d09da063f 100644 --- a/util/test/demos/vk/vk_ray_query.cpp +++ b/util/test/demos/vk/vk_ray_query.cpp @@ -513,6 +513,9 @@ void main(void) vkDeviceWaitIdle(device); + vkDestroyQueryPool(device, compactedPool, NULL); + vkDestroyQueryPool(device, serialisedPool, NULL); + vkDestroyAccelerationStructureKHR(device, newBlas, NULL); vkDestroyAccelerationStructureKHR(device, tlas, NULL); vkDestroyAccelerationStructureKHR(device, blas, NULL);