- 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
1 changed files with 1 additions and 0 deletions

View File

@ -166,6 +166,7 @@ void GLPortal::DrawPortalStencil()
mPrimIndices[n + 3] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n + 2]); mPrimIndices[n + 3] = GLRenderer->mVBO->GetCount(ptr, &mPrimIndices[n + 2]);
} }
} }
gl_RenderState.Apply();
for (unsigned int i = 0; i < mPrimIndices.Size(); i += 2) for (unsigned int i = 0; i < mPrimIndices.Size(); i += 2)
{ {
GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, mPrimIndices[i], mPrimIndices[i + 1]); GLRenderer->mVBO->RenderArray(GL_TRIANGLE_FAN, mPrimIndices[i], mPrimIndices[i + 1]);