[Tizen] Add screen and client rotation itself function
[platform/core/uifw/dali-core.git] / dali / internal / render / common / render-algorithms.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 91d0f3f..329d508
@@ -416,8 +416,7 @@ inline void RenderAlgorithms::ProcessRenderList( const RenderList& renderList,
                                                  Integration::StencilBufferAvailable stencilBufferAvailable,
                                                  Vector<GLuint>& boundTextures,
                                                  const RenderInstruction& instruction,
-                                                 int orientation,
-                                                 Dali::ClippingBox& scissorBox )
+                                                 int orientation )
 {
   DALI_PRINT_RENDER_LIST( renderList );
 
@@ -476,12 +475,6 @@ inline void RenderAlgorithms::ProcessRenderList( const RenderList& renderList,
     mScissorStack.push_back( layerScissorBox );
     mHasLayerScissor = true;
   }
-  else if ( !scissorBox.IsEmpty() )
-  {
-    context.SetScissorTest( true );
-    context.Scissor( scissorBox.x, scissorBox.y, scissorBox.width, scissorBox.height );
-    mScissorStack.push_back( scissorBox );
-  }
   else
   {
     // We are not performing a layer clip. Add the viewport as the root scissor rectangle.
@@ -530,8 +523,7 @@ void RenderAlgorithms::ProcessRenderInstruction( const RenderInstruction& instru
                                                  Integration::DepthBufferAvailable depthBufferAvailable,
                                                  Integration::StencilBufferAvailable stencilBufferAvailable,
                                                  Vector<GLuint>& boundTextures,
-                                                 int orientation,
-                                                 Dali::ClippingBox& scissorBox )
+                                                 int orientation )
 {
   DALI_PRINT_RENDER_INSTRUCTION( instruction, bufferIndex );
 
@@ -562,8 +554,7 @@ void RenderAlgorithms::ProcessRenderInstruction( const RenderInstruction& instru
                             stencilBufferAvailable,
                             boundTextures,
                             instruction, //added for reflection effect
-                            orientation,
-                            scissorBox );
+                            orientation );
       }
     }
   }