Fix TransitionTest issue that depth test haven't been disabled after transition

This commit is contained in:
pandamicro 2015-06-23 16:58:15 +08:00
parent 77fefbfd16
commit cd1233f801
1 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,10 @@ var transitionsIdx = 0;
// every .Scene each test used must inherit from TestScene,
// make sure the test have the menu item for back to main menu
var TransitionsTestScene = TestScene.extend({
onEnter: function () {
this._super();
director.setDepthTest(false);
},
runThisTest:function () {
var layer = new TestLayer1();
this.addChild(layer);