Kaynağa Gözat

Merge pull request #675 from Azaezel/alpha40/postFxFix

fix reported ASAN crash
Brian Roberts 3 yıl önce
ebeveyn
işleme
50b94114e5
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  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.