fix compile error

This commit is contained in:
Huabing.Xu 2013-12-19 17:20:36 +08:00
parent d51ad36613
commit 44366c653c
1 changed files with 4 additions and 4 deletions

View File

@ -2,9 +2,9 @@
#include "CCNodeGrid.h" #include "CCNodeGrid.h"
#include "CCGrid.h" #include "CCGrid.h"
#include "GroupCommand.h" #include "CCGroupCommand.h"
#include "Renderer.h" #include "CCRenderer.h"
#include "CustomCommand.h" #include "CCCustomCommand.h"
NS_CC_BEGIN NS_CC_BEGIN
@ -73,7 +73,7 @@ void NodeGrid::visit()
return; return;
} }
Renderer* renderer = Renderer::getInstance(); Renderer* renderer = Director::getInstance()->getRenderer();
GroupCommand* groupCommand = GroupCommand::getCommandPool().generateCommand(); GroupCommand* groupCommand = GroupCommand::getCommandPool().generateCommand();
groupCommand->init(0,_vertexZ); groupCommand->init(0,_vertexZ);