[Tizen] Don't do AABB culling if the clipping mode of the node is enabled 16/266216/1
authorHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 07:33:03 +0000 (16:33 +0900)
committerHeeyong Song <heeyong.song@samsung.com>
Tue, 9 Nov 2021 07:38:09 +0000 (16:38 +0900)
It should not be culled because the clipping rect should be used.

Change-Id: I7d5895c8471720ba808d0c5919adb1b4288c5f18

dali/internal/update/manager/render-instruction-processor.cpp

index c4c2655..15a58e8 100644 (file)
@@ -194,7 +194,7 @@ inline void AddRendererToRenderList(BufferIndex         updateBufferIndex,
   Matrix  nodeModelViewMatrix(false);
   bool    nodeModelViewMatrixSet(false);
 
-  if(cull && renderable.mRenderer && !renderable.mRenderer->GetShader().HintEnabled(Dali::Shader::Hint::MODIFIES_GEOMETRY))
+  if(cull && renderable.mRenderer && !renderable.mRenderer->GetShader().HintEnabled(Dali::Shader::Hint::MODIFIES_GEOMETRY) && node->GetClippingMode() == ClippingMode::DISABLED)
   {
     const Vector4& boundingSphere = node->GetBoundingSphere();
     inside                        = (boundingSphere.w > Math::MACHINE_EPSILON_1000) &&