Check validation of texture when we send Updated 73/291173/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 11 Apr 2023 06:06:53 +0000 (15:06 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 11 Apr 2023 06:06:53 +0000 (15:06 +0900)
Change-Id: I743ea27f57e5c3c524171b8379293cb0dde3cb49
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/update/rendering/scene-graph-texture-set.cpp

index 338c335..80572a7 100644 (file)
@@ -75,7 +75,7 @@ void TextureSet::SetSampler(uint32_t index, Render::Sampler* sampler)
 
   mSamplers[index] = sampler;
 
-  if(index < static_cast<uint32_t>(mTextures.Size()))
+  if(index < static_cast<uint32_t>(mTextures.Size()) && mTextures[index])
   {
     // Send a message to the RenderManagerReserveMessageSlot
     using DerivedType = MessageValue1<RenderManager, Render::TextureKey>;