1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2004-08-23 06:22:22 +00:00
parent 8c96f47bba
commit 262eb2d8a1

View file

@ -2194,6 +2194,8 @@ void PPL_AddLight(dlight_t *dl)
glClear(GL_STENCIL_BUFFER_BIT); glClear(GL_STENCIL_BUFFER_BIT);
glDisable(GL_CULL_FACE); glDisable(GL_CULL_FACE);
glEnable(GL_STENCIL_TEST_TWO_SIDE_EXT);
glCullFace(GL_BACK); glCullFace(GL_BACK);
qglActiveStencilFaceEXT(GL_BACK); qglActiveStencilFaceEXT(GL_BACK);
glStencilOp(GL_KEEP, sincrw, GL_KEEP); glStencilOp(GL_KEEP, sincrw, GL_KEEP);
@ -2210,6 +2212,8 @@ void PPL_AddLight(dlight_t *dl)
qglActiveStencilFaceEXT(GL_FRONT); qglActiveStencilFaceEXT(GL_FRONT);
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
glDisable(GL_STENCIL_TEST_TWO_SIDE_EXT);
glEnable(GL_CULL_FACE); glEnable(GL_CULL_FACE);
glStencilFunc( GL_EQUAL, 0, ~0 ); glStencilFunc( GL_EQUAL, 0, ~0 );