Merge pull request #326 from liswei/issue521

issue #521 set depthtest value for true ,then set depthtest value for false
This commit is contained in:
minggo 2011-06-27 18:20:10 -07:00
commit 7099b24ccb
1 changed files with 2 additions and 1 deletions

View File

@ -291,6 +291,8 @@ public:
CCActionInterval* createEffect(int nIndex, ccTime t) CCActionInterval* createEffect(int nIndex, ccTime t)
{ {
CCDirector::sharedDirector()->setDepthTest(false);
switch(nIndex) switch(nIndex)
{ {
case 0: return Shaky3DDemo::actionWithDuration(t); case 0: return Shaky3DDemo::actionWithDuration(t);
@ -330,7 +332,6 @@ CCActionInterval* getAction()
void EffectTestScene::runThisTest() void EffectTestScene::runThisTest()
{ {
addChild(TextLayer::node()); addChild(TextLayer::node());
CCDirector::sharedDirector()->setDepthTest(false);
CCDirector::sharedDirector()->replaceScene(this); CCDirector::sharedDirector()->replaceScene(this);
} }