[Tizen] Don't do AABB culling if the clipping mode of the node is enabled
authorShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:48:34 +0000 (10:48 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Nov 2021 01:48:34 +0000 (10:48 +0900)
This reverts commit 168b7bff5966cc0a758ab92442831e8f51726c2b.

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) &&