mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-15 23:40:29 +02:00
Move the responsibility to register the debugutils callback to the VulkanContext. We only use one anyway.
This commit is contained in:
1 parent
6532c345c8
commit
fbc4fa5bca
4 files changed
+15
-19
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user