Loading libs/hwui/Stencil.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -37,9 +37,10 @@ void Stencil::clear() { void Stencil::enableTest() { if (mState != kTest) { enable(); glStencilFunc(GL_LESS, 0x0, 0x1); glStencilFunc(GL_EQUAL, 0x0, 0x1); // We only want to test, let's keep everything glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); mState = kTest; } } Loading @@ -50,6 +51,7 @@ void Stencil::enableWrite() { glStencilFunc(GL_ALWAYS, 0x1, 0x1); // The test always passes so the first two values are meaningless glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); mState = kWrite; } } Loading Loading
libs/hwui/Stencil.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -37,9 +37,10 @@ void Stencil::clear() { void Stencil::enableTest() { if (mState != kTest) { enable(); glStencilFunc(GL_LESS, 0x0, 0x1); glStencilFunc(GL_EQUAL, 0x0, 0x1); // We only want to test, let's keep everything glStencilOp(GL_KEEP, GL_KEEP, GL_KEEP); glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE); mState = kTest; } } Loading @@ -50,6 +51,7 @@ void Stencil::enableWrite() { glStencilFunc(GL_ALWAYS, 0x1, 0x1); // The test always passes so the first two values are meaningless glStencilOp(GL_KEEP, GL_KEEP, GL_REPLACE); glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE); mState = kWrite; } } Loading