Forgot to add scissor rect to cache

This commit is contained in:
Thomas Edvalson
2016-08-10 22:30:59 -04:00
parent 44c33d2f07
commit 54dc1583aa
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -406,6 +406,7 @@ void RenderTarget::applyScissor(const UintRect& rect)
if (right < 0) right = 0;
C3D_SetScissor(GPU_SCISSOR_NORMAL, left, right, top, bottom);
}
m_cache.lastScissor = rect;
}
+1
View File
@@ -451,6 +451,7 @@ void RenderTarget::applyScissor(const UintRect& rect)
glCheck(glEnable(GL_SCISSOR_TEST));
glScissor(rect.left, y, rect.width, rect.height);
}
m_cache.lastScissor = rect;
}