- fixed: GLPortal::DrawPortalStencil must apply the render state before drawing anything.

This commit is contained in:
Christoph Oelckers 2014-06-15 10:30:03 +02:00
parent 2abf1644a4
commit 6b038a5dae

View file

@ -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]);