mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 07:22:07 +00:00
- fixed: GLPortal::DrawPortalStencil must apply the render state before drawing anything.
This commit is contained in:
parent
2abf1644a4
commit
6b038a5dae
1 changed files with 1 additions and 0 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Reference in a new issue