libretro: Detach glslang from process on shutdown

On Apple platforms without this, glslang doesn't get properly
deinitialized, and will cause a crash on the second play
This commit is contained in:
Eric Warmenhoven
2026-03-06 11:04:37 -05:00
parent c480e21f5f
commit be85deba21
+2
View File
@@ -12,6 +12,7 @@
#include "libretro/LibretroVulkanContext.h"
#include <libretro_vulkan.h>
#include <GPU/Vulkan/VulkanRenderManager.h>
#include "ext/glslang/OGLCompilersDLL/InitializeDll.h"
#undef fflush
@@ -169,6 +170,7 @@ void LibretroVulkanContext::Shutdown() {
vk = nullptr;
finalize_glslang();
glslang::DetachProcess();
vk_libretro_shutdown();
}