From 911144b7209e1f253646a1fdb6dacf028144a6d9 Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 8 Aug 2014 11:52:40 +0800 Subject: [PATCH] wrong parameter for visit --- cocos/base/CCDirector.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cocos/base/CCDirector.cpp b/cocos/base/CCDirector.cpp index ac8fac6eb3..e4492aca20 100644 --- a/cocos/base/CCDirector.cpp +++ b/cocos/base/CCDirector.cpp @@ -303,7 +303,7 @@ void Director::drawScene() loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION, Camera::_visitingCamera->getViewProjectionMatrix()); //visit the scene - _runningScene->visit(_renderer, Mat4::IDENTITY, false); + _runningScene->visit(_renderer, Mat4::IDENTITY, 0); _renderer->render(); popMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); @@ -316,7 +316,7 @@ void Director::drawScene() loadMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION, Camera::_visitingCamera->getViewProjectionMatrix()); //visit the scene - _runningScene->visit(_renderer, Mat4::IDENTITY, false); + _runningScene->visit(_renderer, Mat4::IDENTITY, 0); _renderer->render(); popMatrix(MATRIX_STACK_TYPE::MATRIX_STACK_PROJECTION); @@ -329,7 +329,7 @@ void Director::drawScene() // draw the notifications node if (_notificationNode) { - _notificationNode->visit(_renderer, Mat4::IDENTITY, false); + _notificationNode->visit(_renderer, Mat4::IDENTITY, 0); } if (_displayStats)