mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
swr: [rasterizer jitter] fix potential jit exit crash
Signed-off-by: Tim Rowley <timothy.o.rowley@intel.com>
This commit is contained in:
parent
57b07498d2
commit
f438b7ba81
1 changed files with 6 additions and 1 deletions
|
|
@ -352,6 +352,8 @@ void JitManager::DumpToFile(Function *f, const char *fileName)
|
|||
|
||||
extern "C"
|
||||
{
|
||||
bool g_DllActive = true;
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Create JIT context.
|
||||
/// @param simdWidth - SIMD width to be used in generated program.
|
||||
|
|
@ -364,6 +366,9 @@ extern "C"
|
|||
/// @brief Destroy JIT context.
|
||||
void JITCALL JitDestroyContext(HANDLE hJitContext)
|
||||
{
|
||||
delete reinterpret_cast<JitManager*>(hJitContext);
|
||||
if (g_DllActive)
|
||||
{
|
||||
delete reinterpret_cast<JitManager*>(hJitContext);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue