Initialize mDepthIndex of RenderItem in AddRendererToRenderList 61/176161/3
authorminho.sun <minho.sun@samsung.com>
Tue, 17 Apr 2018 07:40:17 +0000 (16:40 +0900)
committerminho.sun <minho.sun@samsung.com>
Wed, 18 Apr 2018 03:54:29 +0000 (12:54 +0900)
RenderItem can be re-used.
Before using RenderItem again, initialize mDepthIndex to 0.

Change-Id: I47b9261767cb3dbc104db2049d893bf439d3bd98
Signed-off-by: minho.sun <minho.sun@samsung.com>
dali/internal/update/manager/render-instruction-processor.cpp

index e94a910..983b799 100644 (file)
@@ -179,7 +179,9 @@ inline void AddRendererToRenderList( BufferIndex updateBufferIndex,
 
       item.mNode = renderable.mNode;
       item.mIsOpaque = ( opacityType == Renderer::OPAQUE );
-      if( !isLayer3d )
+      item.mDepthIndex = 0;
+
+      if(!isLayer3d)
       {
         item.mDepthIndex = renderable.mNode->GetDepthIndex();
       }