Bounding box clipping fix 32/156932/3
authoradam.b <adam.b@samsung.com>
Fri, 20 Oct 2017 16:58:31 +0000 (17:58 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 30 Oct 2017 15:33:34 +0000 (15:33 +0000)
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

index 9a28418..d596568 100644 (file)
@@ -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 )