浏览代码

Merge pull request #675 from Azaezel/alpha40/postFxFix

fix reported ASAN crash
Brian Roberts 3 年之前
父节点
当前提交
50b94114e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/postFx/postEffect.cpp

+ 1 - 1
Engine/source/postFx/postEffect.cpp

@@ -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.