[Tizen] Fix culling issue with scale 64/292664/3
authorseungho baek <sbsh.baek@samsung.com>
Thu, 11 May 2023 04:58:42 +0000 (13:58 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Thu, 11 May 2023 06:34:48 +0000 (15:34 +0900)
Change-Id: I46418d927ee21bc72b94aeae7e8ae4068b46d6be
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
dali/internal/update/manager/render-instruction-processor.cpp

index 9438cb9..e5f55f6 100644 (file)
@@ -153,9 +153,14 @@ inline bool SetNodeUpdateArea(Node* node, bool isLayer3d, Matrix& nodeWorldMatri
 
   if(node->GetUpdateAreaHint() == Vector4::ZERO)
   {
+    if(isLayer3d)
+    {
+      return true;
+    }
     // RenderItem::CalculateViewportSpaceAABB cannot cope with z transform
     // I don't use item.mModelMatrix.GetTransformComponents() for z transform, would be too slow
-    if(!isLayer3d && nodeWorldMatrix.GetZAxis() == Vector3(0.0f, 0.0f, 1.0f))
+    Vector3 zaxis = nodeWorldMatrix.GetZAxis();
+    if(EqualsZero(zaxis.x) && EqualsZero(zaxis.y))
     {
       nodeUpdateArea = Vector4(0.0f, 0.0f, nodeSize.width, nodeSize.height);
       return false;