Revert "Convert keyword maps to static initializers"

This reverts commit dc1012140e
This commit is contained in:
Kai Angulo 2024-10-23 23:56:39 -07:00
parent 413a51ee6d
commit 5044ec9c2f
3 changed files with 955 additions and 897 deletions

View file

@ -1340,6 +1340,11 @@ int ShInitialize()
if (PerProcessGPA == nullptr)
PerProcessGPA = new TPoolAllocator();
glslang::TScanContext::fillInKeywordMap();
#ifdef ENABLE_HLSL
glslang::HlslScanContext::fillInKeywordMap();
#endif
return 1;
}
@ -1428,6 +1433,11 @@ int ShFinalize()
PerProcessGPA = nullptr;
}
glslang::TScanContext::deleteKeywordMap();
#ifdef ENABLE_HLSL
glslang::HlslScanContext::deleteKeywordMap();
#endif
return 1;
}