From ef7e4fe67815fbd9b0bf440155bffeec3137f4ba Mon Sep 17 00:00:00 2001
From: Christoph Oelckers <coelckers@users.noreply.github.com>
Date: Sun, 14 May 2017 12:31:51 +0200
Subject: [PATCH] - draw empty portals in black, not the last set color.

---
 src/gl/scene/gl_portal.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gl/scene/gl_portal.cpp b/src/gl/scene/gl_portal.cpp
index 468ecefc2..5bccda3e7 100644
--- a/src/gl/scene/gl_portal.cpp
+++ b/src/gl/scene/gl_portal.cpp
@@ -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);