Enable depth test in test case : TilemapTest->TMXOrthoVertexZ.

This commit is contained in:
zhangbin 2014-04-21 15:26:57 +08:00
parent 3ac08b7349
commit 440702aa06
1 changed files with 2 additions and 0 deletions

View File

@ -1172,12 +1172,14 @@ void TMXOrthoVertexZ::onEnter()
// TIP: 2d projection should be used
Director::getInstance()->setProjection(Director::Projection::_2D);
Director::getInstance()->setDepthTest(true);
}
void TMXOrthoVertexZ::onExit()
{
// At exit use any other projection.
Director::getInstance()->setProjection(Director::Projection::DEFAULT);
Director::getInstance()->setDepthTest(false);
TileDemo::onExit();
}