fixed #486, setDepthTest(true) in TileMapTest, while setDepthTest(false) in TransitionsTest. TransitionFlip will not flickers any more :)

This commit is contained in:
Walzer 2011-05-12 10:52:10 +08:00
parent 78d49e9806
commit 10d94fb170
2 changed files with 178 additions and 170 deletions

View File

@ -1376,5 +1376,10 @@ void TileMapTestScene::runThisTest()
CCLayer* pLayer = nextTileMapAction();
addChild(pLayer);
// fix bug #486, #419.
// "test" is the default value in CCDirector::setGLDefaultValues()
// but TransitionTest may setDepthTest(false), we should revert it here
CCDirector::sharedDirector()->setDepthTest(true);
CCDirector::sharedDirector()->replaceScene(this);
}

View File

@ -238,6 +238,9 @@ void TransitionsTestScene::runThisTest()
addChild(pLayer);
pLayer->release();
// fix bug #486, without setDepthTest(false), FlipX,Y will flickers
CCDirector::sharedDirector()->setDepthTest(false);
CCDirector::sharedDirector()->replaceScene(this);
}