mirror of https://github.com/axmolengine/axmol.git
fixed #486, setDepthTest(true) in TileMapTest, while setDepthTest(false) in TransitionsTest. TransitionFlip will not flickers any more :)
This commit is contained in:
parent
78d49e9806
commit
10d94fb170
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue