This commit is contained in:
Branimir Karadžić
2017-02-08 18:17:59 -08:00
parent 03e6076e59
commit aa2a9deb5f
7 changed files with 34 additions and 9 deletions

View File

@@ -3805,7 +3805,7 @@ BX_UNUSED(currentSamplerStateIdx);
if (BGFX_CLEAR_NONE != clr.m_flags)
{
Rect clearRect = rect;
clearRect.intersect(rect, viewScissorRect);
clearRect.setIntersect(rect, viewScissorRect);
clearQuad(clearRect, clr, _render->m_colorPalette);
}
@@ -4261,7 +4261,7 @@ BX_UNUSED(currentSamplerStateIdx);
{
restoreScissor = true;
Rect scissorRect;
scissorRect.intersect(viewScissorRect,_render->m_rectCache.m_cache[scissor]);
scissorRect.setIntersect(viewScissorRect,_render->m_rectCache.m_cache[scissor]);
if (scissorRect.isZeroArea() )
{
continue;