- the Render state must be applied before performing a portal clear screen, because it would still be set to stencil drawing at this point.

This commit is contained in:
Christoph Oelckers 2017-05-14 12:42:25 +02:00
parent 8a91153aeb
commit 437dd68d79
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ void GLPortal::ClearScreen()
gl_RenderState.mViewMatrix.loadIdentity();
gl_RenderState.mProjectionMatrix.ortho(0, SCREENWIDTH, SCREENHEIGHT, 0, -1.0f, 1.0f);
gl_RenderState.ApplyMatrices();
glVertexAttrib4f(VATTR_COLOR, 0, 0, 0, 1); // color should be black.
gl_RenderState.SetColor(0, 0, 0);
gl_RenderState.Apply();
glDisable(GL_MULTISAMPLE);
glDisable(GL_DEPTH_TEST);