Move the responsibility to register the debugutils callback to the VulkanContext. We only use one anyway.
This commit is contained in:
parent
6532c345c8
commit
fbc4fa5bca
4 changed files with 15 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue