This commit is contained in:
Branimir Karadžić
2017-11-02 09:22:41 -07:00
parent a35e4fb7ca
commit 5adbd48b01

View File

@@ -6900,12 +6900,10 @@ namespace bgfx { namespace gl
continue;
}
const uint64_t oldFlags = currentState.m_stateFlags;
const uint64_t newFlags = draw.m_stateFlags;
uint64_t changedFlags = currentState.m_stateFlags ^ draw.m_stateFlags;
currentState.m_stateFlags = newFlags;
const uint64_t oldStencil = currentState.m_stencil;
const uint64_t newStencil = draw.m_stencil;
uint64_t changedStencil = currentState.m_stencil ^ draw.m_stencil;
currentState.m_stencil = newStencil;
@@ -6949,9 +6947,7 @@ namespace bgfx { namespace gl
scissorRect.setIntersect(viewScissorRect, _render->m_frameCache.m_rectCache.m_cache[scissor]);
if (scissorRect.isZeroArea() )
{
currentState.m_stateFlags = oldFlags;
currentState.m_stencil = oldStencil;
continue;
//continue;
}
GL_CHECK(glEnable(GL_SCISSOR_TEST) );