Merge pull request #675 from Azaezel/alpha40/postFxFix

fix reported ASAN crash
This commit is contained in:
Brian Roberts 2021-11-16 20:49:13 -06:00 committed by GitHub
commit 50b94114e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.