Merge pull request #3079 from dabingnn/Issue-2367-ClippingNodes-Bug

issue #2367: Fix Bug "ClippingNodes work different in Android and IOS"
This commit is contained in:
minggo 2013-07-04 22:42:03 -07:00
commit 12bc534475
1 changed files with 1 additions and 2 deletions

View File

@ -663,8 +663,7 @@ void RawStencilBufferTest::setupStencilForClippingOnPlane(GLint plane)
void RawStencilBufferTest::setupStencilForDrawingOnPlane(GLint plane)
{
GLint planeMask = 0x1 << plane;
GLint equalOrLessPlanesMask = planeMask | (planeMask - 1);
glStencilFunc(GL_EQUAL, equalOrLessPlanesMask, equalOrLessPlanesMask);
glStencilFunc(GL_EQUAL, planeMask, planeMask);
glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP);
}