Convert keyword maps to static initializers
Rather than having a function that needs to be called from ShInitialize to initialize some global costants, convert them to use static initializers.
This commit is contained in:
parent
6495f77b04
commit
dc1012140e
3 changed files with 897 additions and 955 deletions
|
|
@ -1324,11 +1324,6 @@ int ShInitialize()
|
|||
if (PerProcessGPA == nullptr)
|
||||
PerProcessGPA = new TPoolAllocator();
|
||||
|
||||
glslang::TScanContext::fillInKeywordMap();
|
||||
#ifdef ENABLE_HLSL
|
||||
glslang::HlslScanContext::fillInKeywordMap();
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
@ -1417,11 +1412,6 @@ int ShFinalize()
|
|||
PerProcessGPA = nullptr;
|
||||
}
|
||||
|
||||
glslang::TScanContext::deleteKeywordMap();
|
||||
#ifdef ENABLE_HLSL
|
||||
glslang::HlslScanContext::deleteKeywordMap();
|
||||
#endif
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue