Cocos2d-x: Fix performance degradation and add texture coloring