avoid unnecessary stencil writes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2626 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+2
-10
@@ -393,16 +393,8 @@ void drawstencilshadows()
|
||||
{
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
if((hasST2 || hasSTS) && !hasSTW)
|
||||
{
|
||||
glStencilFunc(GL_NOTEQUAL, 128, ~0U);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE);
|
||||
}
|
||||
else
|
||||
{
|
||||
glStencilFunc(GL_NOTEQUAL, 0, ~0U);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_ZERO);
|
||||
}
|
||||
glStencilFunc(GL_NOTEQUAL, (hasST2 || hasSTS) && !hasSTW ? 128 : 0, ~0U);
|
||||
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
|
||||
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ZERO, GL_SRC_COLOR);
|
||||
|
||||
Reference in New Issue
Block a user