Skip to content

Commit 54587dc

Browse files
wermancharles-lunarg
authored andcommitted
vulkaninfo: Fix running under RenderDoc
RenderDoc allows only one simultaneously existing logical device, and vulkaninfo doesn't have a real need to keep them simultaneously alive. Running vulkaninfo under RenderDoc is useful to get a Vulkan profile that will represent the RenderDoc capabilities on the current GPU, which can be useful to, e.g., make a gfxreconstruct trace that will be later capturable by RenderDoc. Signed-off-by: Danylo Piliaiev <[email protected]>
1 parent 8542e6d commit 54587dc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vulkaninfo/vulkaninfo.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1814,6 +1814,9 @@ struct AppGpu {
18141814

18151815
// Video //
18161816
video_profiles = enumerate_supported_video_profiles(*this);
1817+
1818+
vkDestroyDevice(dev, nullptr);
1819+
dev = VK_NULL_HANDLE;
18171820
}
18181821
~AppGpu() { vkDestroyDevice(dev, nullptr); }
18191822

0 commit comments

Comments
 (0)