mirror of https://github.com/axmolengine/axmol.git
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:
commit
7099b24ccb
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue