From bb5972854366f4f3e15865b605862a537d4daf7f Mon Sep 17 00:00:00 2001 From: liswei Date: Mon, 27 Jun 2011 15:34:26 +0800 Subject: [PATCH] issue #521 set depthtest value for true ,then set depthtest value for false --- tests/tests/EffectsTest/EffectsTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests/EffectsTest/EffectsTest.cpp b/tests/tests/EffectsTest/EffectsTest.cpp index e7c6ff691a..65a16a5639 100644 --- a/tests/tests/EffectsTest/EffectsTest.cpp +++ b/tests/tests/EffectsTest/EffectsTest.cpp @@ -291,6 +291,8 @@ public: CCActionInterval* createEffect(int nIndex, ccTime t) { + CCDirector::sharedDirector()->setDepthTest(false); + switch(nIndex) { case 0: return Shaky3DDemo::actionWithDuration(t); @@ -330,7 +332,6 @@ CCActionInterval* getAction() void EffectTestScene::runThisTest() { addChild(TextLayer::node()); - CCDirector::sharedDirector()->setDepthTest(false); CCDirector::sharedDirector()->replaceScene(this); }