/*
- * Copyright (c) 2018 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
const Matrix& projectionMatrix,
Integration::DepthBufferAvailable depthBufferAvailable,
Integration::StencilBufferAvailable stencilBufferAvailable,
- int orientation )
+ Vector<GLuint>& boundTextures,
+ int orientation,
+ Dali::ClippingBox& scissorBox )
{
DALI_PRINT_RENDER_LIST( 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.
// Render the item.
item.mRenderer->Render( context, bufferIndex, *item.mNode, item.mModelMatrix, item.mModelViewMatrix,
- viewMatrix, projectionMatrix, item.mSize, !item.mIsOpaque );
+ viewMatrix, projectionMatrix, item.mSize, !item.mIsOpaque, boundTextures );
}
}
}
BufferIndex bufferIndex,
Integration::DepthBufferAvailable depthBufferAvailable,
Integration::StencilBufferAvailable stencilBufferAvailable,
- int orientation )
+ Vector<GLuint>& boundTextures,
+ int orientation,
+ Dali::ClippingBox& scissorBox )
{
DALI_PRINT_RENDER_INSTRUCTION( instruction, bufferIndex );
*projectionMatrix,
depthBufferAvailable,
stencilBufferAvailable,
- orientation );
+ boundTextures,
+ orientation,
+ scissorBox );
}
}
}