From 6b038a5daed5a4db7e4452d835957b827f53158e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 15 Jun 2014 10:30:03 +0200 Subject: [PATCH] - fixed: GLPortal::DrawPortalStencil must apply the render state before drawing anything. --- 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 2d5fcd3a3f..4e07fc1a88 100644 --- a/src/gl/scene/gl_portal.cpp +++ b/src/gl/scene/gl_portal.cpp @@ -166,6 +166,7 @@ void GLPortal::DrawPortalStencil() mPrimIndices[n + 3] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n + 2]); } } + gl_RenderState.Apply(); for (unsigned int i = 0; i < mPrimIndices.Size(); i += 2) { GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, mPrimIndices[i], mPrimIndices[i + 1]);