mirror of https://github.com/axmolengine/axmol.git
=cocos2d namespace adder for CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES macro
This commit is contained in:
parent
8a160d76a3
commit
1d83229956
|
@ -260,7 +260,7 @@ It should work same as apples CFSwapInt32LittleToHost(..)
|
|||
#define CC_INCREMENT_GL_DRAWS(__n__) Director::getInstance()->getRenderer()->addDrawnBatches(__n__)
|
||||
#define CC_INCREMENT_GL_DRAWN_BATCHES_AND_VERTICES(__drawcalls__, __vertices__) \
|
||||
do { \
|
||||
auto __renderer__ = Director::getInstance()->getRenderer(); \
|
||||
auto __renderer__ = cocos2d::Director::getInstance()->getRenderer(); \
|
||||
__renderer__->addDrawnBatches(__drawcalls__); \
|
||||
__renderer__->addDrawnVertices(__vertices__); \
|
||||
} while(0)
|
||||
|
|
Loading…
Reference in New Issue