fix for ati stenciling bug

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2675 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-18 02:29:08 +00:00
parent 53fd38c71b
commit 4eee8e7923
+5 -1
View File
@@ -440,7 +440,11 @@ void drawstencilshadows()
glEnable(GL_DEPTH_TEST);
}
// necessary to avoid ATI bug!
// punts to software mode if stencil op is set, even while stencil disabled, when drawing lines!
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
glDisable(GL_STENCIL_TEST);
glEnable(GL_TEXTURE_2D);
glEnable(GL_FOG);