- fixed scissoring with out of range coordinates.

Blood's status bar sets such a bogus clipping rectangle.
This commit is contained in:
Christoph Oelckers 2020-01-05 10:21:34 +01:00
parent e84acb7e2f
commit 6c6874cb0e
4 changed files with 7 additions and 9 deletions

View file

@ -444,7 +444,7 @@ void PolymostRenderState::Apply(PolymostShader* shader, GLState &oldState)
}
if (StateFlags & STF_SCISSORSET)
{
if (sc_x >= 0)
if (sc_x > SHRT_MIN)
{
glScissor(sc_x, sc_y, sc_w, sc_h);
glEnable(GL_SCISSOR_TEST);