mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-11-18 22:06:13 +00:00
Skip rendering when scissor is zero area.
This commit is contained in:
@@ -6601,6 +6601,11 @@ namespace bgfx { namespace gl
|
||||
{
|
||||
Rect scissorRect;
|
||||
scissorRect.intersect(viewScissorRect, _render->m_rectCache.m_cache[scissor]);
|
||||
if (scissorRect.isZeroArea() )
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
GL_CHECK(glEnable(GL_SCISSOR_TEST) );
|
||||
GL_CHECK(glScissor(scissorRect.m_x
|
||||
, resolutionHeight-scissorRect.m_height-scissorRect.m_y
|
||||
|
||||
Reference in New Issue
Block a user