From 437dd68d7902562a6b2a9bff021f07291dc3697e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 14 May 2017 12:42:25 +0200 Subject: [PATCH] - the Render state must be applied before performing a portal clear screen, because it would still be set to stencil drawing at this point. --- src/gl/scene/gl_portal.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp index 5bccda3e7b..93073d7222 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -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);