Fix missing calls to SetThreadPoolAllocator() in TProgram public interface functions

This commit is contained in:
Yamamoto Kazunari 2024-07-10 15:19:11 -07:00 committed by arcady-lunarg
parent bedbe7481e
commit ebbd65501d

View file

@ -2121,6 +2121,8 @@ bool TProgram::buildReflection(int opts)
if (! linked || reflection != nullptr) if (! linked || reflection != nullptr)
return false; return false;
SetThreadPoolAllocator(pool);
int firstStage = EShLangVertex, lastStage = EShLangFragment; int firstStage = EShLangVertex, lastStage = EShLangFragment;
if (opts & EShReflectionIntermediateIO) { if (opts & EShReflectionIntermediateIO) {
@ -2176,6 +2178,9 @@ bool TProgram::mapIO(TIoMapResolver* pResolver, TIoMapper* pIoMapper)
{ {
if (! linked) if (! linked)
return false; return false;
SetThreadPoolAllocator(pool);
TIoMapper* ioMapper = nullptr; TIoMapper* ioMapper = nullptr;
TIoMapper defaultIOMapper; TIoMapper defaultIOMapper;
if (pIoMapper == nullptr) if (pIoMapper == nullptr)