Skip to content

Commit

Permalink
- draw empty portals in black, not the last set color.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 14, 2017
1 parent 0f80b7d commit ef7e4fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gl/scene/gl_portal.cpp
Expand Up @@ -119,6 +119,7 @@ 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.

glDisable(GL_MULTISAMPLE);
glDisable(GL_DEPTH_TEST);
Expand Down

0 comments on commit ef7e4fe

Please sign in to comment.