From: minho.sun Date: Tue, 17 Apr 2018 07:40:17 +0000 (+0900) Subject: [4.0] Initialize mDepthIndex of RenderItem in AddRendererToRenderList X-Git-Tag: accepted/tizen/4.0/unified/20180423.130956^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a4bad224fe0346d75da1bbc84d22fb494305f8d4;p=platform%2Fcore%2Fuifw%2Fdali-core.git [4.0] Initialize mDepthIndex of RenderItem in AddRendererToRenderList RenderItem can be re-used. Before using RenderItem again, initialize mDepthIndex to 0. Change-Id: I47b9261767cb3dbc104db2049d893bf439d3bd98 Signed-off-by: minho.sun --- diff --git a/dali/internal/update/manager/render-instruction-processor.cpp b/dali/internal/update/manager/render-instruction-processor.cpp index b4035e8..4fdb4cb 100644 --- a/dali/internal/update/manager/render-instruction-processor.cpp +++ b/dali/internal/update/manager/render-instruction-processor.cpp @@ -179,6 +179,8 @@ inline void AddRendererToRenderList( BufferIndex updateBufferIndex, item.mNode = renderable.mNode; item.mIsOpaque = ( opacity == Renderer::OPAQUE ); + item.mDepthIndex = 0; + if( !isLayer3d ) { item.mDepthIndex = renderable.mNode->GetDepthIndex();