ccDrawRect always renders behind sprites

ccDrawRect works just fine respecting the zorder I set in regular cocos2d. But the very same thing doesn’t work in cocos2d-x. I’m pretty sure it is an bug. Is there any workaround for such issue?

thanks

In cocos2d-x 3.x there’s a differnt way things should be done.

See this thread where I asked about it, and got some good answers
http://discuss.cocos2d-x.org/t/can-no-longer-override-draw-function/12303/9!