Fixed frustum culling when scale is applied 94/57294/1
authorPaul Wisbey <p.wisbey@samsung.com>
Mon, 18 Jan 2016 18:21:39 +0000 (18:21 +0000)
committerPaul Wisbey <p.wisbey@samsung.com>
Mon, 18 Jan 2016 18:21:39 +0000 (18:21 +0000)
Change-Id: Ic7d369c05ab80d8699340d87944c38c136a0cf46

dali/internal/update/manager/prepare-render-instructions.cpp

index 1de18bd2e215f3f82a000b61db3e1801da841268..56b42d673761c2b63753d2dc8436fc030de55737 100644 (file)
@@ -76,7 +76,7 @@ inline void AddRendererToRenderList( BufferIndex updateBufferIndex,
   if ( cull && renderable.mRenderer->GetMaterial().GetShader()->GeometryHintEnabled( Dali::ShaderEffect::HINT_DOESNT_MODIFY_GEOMETRY ) )
   {
     const Vector3& position = worldMatrix.GetTranslation3();
-    const Vector3& scale = renderable.mNode->GetScale( updateBufferIndex );
+    const Vector3& scale = renderable.mNode->GetWorldScale( updateBufferIndex );
     const Vector3& halfSize = renderable.mNode->GetSize( updateBufferIndex ) * scale * 0.5f;
     float radius( halfSize.Length() );