fix crash when atomicCounter() with no args is used.

This commit is contained in:
Malcolm Bechard 2024-07-12 01:06:18 -04:00 committed by arcady-lunarg
parent 42d9adf50b
commit ba5c010c59

View File

@ -7387,7 +7387,7 @@ TIntermTyped* TParseContext::vkRelaxedRemapFunctionCall(const TSourceLoc& loc, T
}
} else if (function->getName() == "atomicCounter") {
// change atomicCounter into a direct read of the variable
if (arguments->getAsTyped()) {
if (arguments && arguments->getAsTyped()) {
result = arguments->getAsTyped();
}
}