fix reported ASAN crash

This commit is contained in:
AzaezelX 2021-11-16 12:40:22 -06:00
parent b5bd242e23
commit 6474413aaf

View file

@ -1644,7 +1644,7 @@ void PostEffect::setTexture( U32 index, const String &texFilePath )
void PostEffect::setTexture(U32 index, const GFXTexHandle& texHandle)
{
// Set the new texture name.
mTextureName[index] = "";
mTextureName[index] = StringTable->EmptyString();
mTexture[index].free();
// Skip empty stages or ones with variable or target names.