Errr.. does this make it work a bit better?
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@31 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
8c96f47bba
commit
262eb2d8a1
1 changed files with 4 additions and 0 deletions
|
@ -2194,6 +2194,8 @@ void PPL_AddLight(dlight_t *dl)
|
|||
glClear(GL_STENCIL_BUFFER_BIT);
|
||||
glDisable(GL_CULL_FACE);
|
||||
|
||||
glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT);
|
||||
|
||||
glCullFace(GL_BACK);
|
||||
qglActiveStencilFaceEXT(GL_BACK);
|
||||
glStencilOp(GL_KEEP, sincrw, GL_KEEP);
|
||||
|
@ -2210,6 +2212,8 @@ void PPL_AddLight(dlight_t *dl)
|
|||
qglActiveStencilFaceEXT(GL_FRONT);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
|
||||
|
||||
glDisable(GL_STENCIL_TEST_TWO_SIDE_EXT);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
|
||||
glStencilFunc( GL_EQUAL, 0, ~0 );
|
||||
|
|
Loading…
Reference in a new issue