瀏覽代碼

fix reported ASAN crash

AzaezelX 4 年之前
父節點
當前提交
6474413aaf
共有 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)
 void PostEffect::setTexture(U32 index, const GFXTexHandle& texHandle)
 {
 {
    // Set the new texture name.
    // Set the new texture name.
-   mTextureName[index] = "";
+   mTextureName[index] = StringTable->EmptyString();
    mTexture[index].free();
    mTexture[index].free();
 
 
    // Skip empty stages or ones with variable or target names.
    // Skip empty stages or ones with variable or target names.