From 4eee8e7923c38788d1246d02c127e3f2cac2d2bd Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 18 Sep 2008 02:29:08 +0000 Subject: [PATCH] fix for ati stenciling bug git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2675 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/shadow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/src/shadow.cpp b/source/src/shadow.cpp index dcfbc166..f5b061c7 100644 --- a/source/src/shadow.cpp +++ b/source/src/shadow.cpp @@ -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);