mirror of https://github.com/axmolengine/axmol.git
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:
commit
12bc534475
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue