- removed two of the state flags in SetStencil and handle them explicitly.

This commit is contained in:
Christoph Oelckers 2018-10-29 09:53:07 +01:00
commit 1bbc9f6730
5 changed files with 11 additions and 14 deletions

View file

@ -441,12 +441,6 @@ void FGLRenderState::SetStencil(int offs, int op, int flags)
bool cmon = !(flags & SF_ColorMaskOff);
glColorMask(cmon, cmon, cmon, cmon); // don't write to the graphics buffer
glDepthMask(!(flags & SF_DepthMaskOff));
if (flags & SF_DepthTestOff)
glDisable(GL_DEPTH_TEST);
else
glEnable(GL_DEPTH_TEST);
if (flags & SF_DepthClear)
glClear(GL_DEPTH_BUFFER_BIT);
}
void FGLRenderState::SetCulling(int mode)