From 84baa4efc405ccacaf9eed2b701363e6ed7fec69 Mon Sep 17 00:00:00 2001 From: "adam.b" Date: Fri, 20 Oct 2017 17:58:31 +0100 Subject: [PATCH] Bounding box clipping fix Fixes issue occurring when two or more clipping areas are direct siblings and previous sibling becomes automatically a parent. Change-Id: I66e6e6686e5b22597317bc0d583f33f962405097 --- dali/internal/render/common/render-algorithms.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dali/internal/render/common/render-algorithms.cpp b/dali/internal/render/common/render-algorithms.cpp index 9a28418..d596568 100644 --- a/dali/internal/render/common/render-algorithms.cpp +++ b/dali/internal/render/common/render-algorithms.cpp @@ -255,6 +255,10 @@ inline void RenderAlgorithms::SetupScissorClipping( const RenderItem& item, Cont // We traversed up the tree, we need to apply a new scissor rectangle (unless we are at the root). traversedUpTree = true; } + else if( clippingNode && childStackDepth > 0u && childStackDepth == scissorDepth ) // case of sibling clip area + { + mScissorStack.pop_back(); + } // If we are on a clipping node, or we have traveled up the tree and gone back past a clipping node, may need to apply a new scissor clip. if( clippingNode || traversedUpTree ) -- 2.7.4