[Tizen] Allow to set renderpass tag even RenderTask removed from RenderTaskList 17/308917/1
authorEunki Hong <eunkiki.hong@samsung.com>
Tue, 19 Mar 2024 13:35:41 +0000 (22:35 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Tue, 2 Apr 2024 16:23:44 +0000 (01:23 +0900)
There was potential of crash if we set RenderPassTag after RenderTask removed.

Change-Id: Iab01b01b4d4c59ce0328fc5f4b55f40a26f82435
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali/internal/event/render-tasks/render-task-impl.cpp

index 7ceaeb3..25ca2dc 100644 (file)
@@ -604,7 +604,10 @@ void RenderTask::SetRenderPassTag(uint32_t renderPassTag)
   if(mRenderPassTag != renderPassTag)
   {
     mRenderPassTag = renderPassTag;
-    SetRenderPassTagMessage(GetEventThreadServices(), *GetRenderTaskSceneObject(), renderPassTag);
+    if(GetRenderTaskSceneObject())
+    {
+      SetRenderPassTagMessage(GetEventThreadServices(), *GetRenderTaskSceneObject(), renderPassTag);
+    }
   }
 }