mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-14 09:55:47 -04:00
(libretro/Vulkan) Fix glslang shader-related crashes
This commit is contained in:
@ -158,6 +158,7 @@ bool DetachProcess()
|
||||
|
||||
OS_FreeTLSIndex(ThreadInitializeIndex);
|
||||
ThreadInitializeIndex = OS_INVALID_TLS_INDEX;
|
||||
DeinitializePoolIndex();
|
||||
|
||||
return success;
|
||||
}
|
||||
|
@ -38,6 +38,7 @@
|
||||
namespace glslang {
|
||||
|
||||
bool InitializePoolIndex();
|
||||
bool DeinitializePoolIndex();
|
||||
|
||||
} // end namespace glslang
|
||||
|
||||
|
@ -65,6 +65,15 @@ bool InitializePoolIndex()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool DeinitializePoolIndex()
|
||||
{
|
||||
if (PoolIndex == OS_INVALID_TLS_INDEX)
|
||||
return false;
|
||||
OS_FreeTLSIndex(PoolIndex);
|
||||
PoolIndex = OS_INVALID_TLS_INDEX;
|
||||
return true;
|
||||
}
|
||||
|
||||
//
|
||||
// Implement the functionality of the TPoolAllocator class, which
|
||||
// is documented in PoolAlloc.h.
|
||||
|
@ -1429,6 +1429,7 @@ int ShFinalize()
|
||||
glslang::HlslScanContext::deleteKeywordMap();
|
||||
#endif
|
||||
|
||||
DetachProcess();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user