mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user