Modify wrong codes

This commit is contained in:
CaiWenzhi 2014-01-06 12:19:59 +08:00
parent 2450841a5f
commit 63fbec05e9
1 changed files with 2 additions and 2 deletions

View File

@ -269,7 +269,7 @@ void Layout::onBeforeVisitStencil()
glGetBooleanv(GL_DEPTH_WRITEMASK, &_currentDepthWriteMask);
glDepthMask(GL_FALSE);
glStencilFunc(GL_NEVER, mask_layer, mask_layer);
glStencilOp(!false ? GL_ZERO : GL_REPLACE, GL_KEEP, GL_KEEP);
glStencilOp(GL_ZERO, GL_KEEP, GL_KEEP);
kmGLMatrixMode(KM_GL_MODELVIEW);
kmGLPushMatrix();
kmGLLoadIdentity();
@ -285,7 +285,7 @@ void Layout::onBeforeVisitStencil()
kmGLMatrixMode(KM_GL_MODELVIEW);
kmGLPopMatrix();
glStencilFunc(GL_NEVER, mask_layer, mask_layer);
glStencilOp(!false ? GL_REPLACE : GL_ZERO, GL_KEEP, GL_KEEP);
glStencilOp(GL_REPLACE, GL_KEEP, GL_KEEP);
}
void Layout::onAfterDrawStencil()