Move the responsibility to register the debugutils callback to the VulkanContext. We only use one anyway.

This commit is contained in:
Henrik Rydgård 2020-06-21 22:59:55 +02:00
parent 6532c345c8
commit fbc4fa5bca
4 changed files with 15 additions and 19 deletions

View file

@ -120,8 +120,6 @@ bool AndroidVulkanContext::InitFromRenderThread(ANativeWindow *wnd, int desiredB
if (!success) {
g_Vulkan->DestroyObjects();
g_Vulkan->DestroyDevice();
g_Vulkan->DestroyDebugUtilsCallback();
g_Vulkan->DestroyInstance();
}
return success;
@ -141,7 +139,6 @@ void AndroidVulkanContext::ShutdownFromRenderThread() {
void AndroidVulkanContext::Shutdown() {
ILOG("Calling NativeShutdownGraphics");
g_Vulkan->DestroyDevice();
g_Vulkan->DestroyDebugUtilsCallback();
g_Vulkan->DestroyInstance();
// We keep the g_Vulkan context around to avoid invalidating a ton of pointers around the app.
finalize_glslang();