Hello everyone. I’m new here and I think same applies for this issue. I’ve also posted it on stackoverflow:
http://stackoverflow.com/questions/14608283/ccdrawline-ignores-z-order-and-draws-over-all-other-layers-in-cocos2dx
It’s simple, when I have ccDrawLine() call, it draws over every other layer. But this doesn’t happen on iOS or Android emulators. I could only test on several Android devices, and all has this issue. Any idea what could be wrong?
Version of cocos2dx is 2.1beta3
Thank you.
EDIT: After some research, I’ve found out, that it probably only happens on ARM Mali GPU. I tried it on SGS2 and SGS3. On both the line is drawn over all other nodes/layers/sprites. When tried on SGS1 (PowerVRX GPU), it works as it should (same as in emulator). Maybe I’m missing something but I can’t figure out or find how to make it work on the Mali GPU properly.