From 7a61ead59865b140e56c21702ef66802a8d20396 Mon Sep 17 00:00:00 2001 From: "Huabing.Xu" Date: Fri, 5 Jul 2013 11:59:46 +0800 Subject: [PATCH] issue #2367: Fix Bug "ClippingNodes work different in Android and IOS" --- .../Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp b/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp index dc709aaeca..5b3bda69e9 100644 --- a/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp +++ b/samples/Cpp/TestCpp/Classes/ClippingNodeTest/ClippingNodeTest.cpp @@ -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); }