c++ - cocos2d-x custom draw produces weird results -


i have subclassed sprite , in draw(renderer, const kmmat4&, bool) method, used library facilitates opengl shaders (not using deferred rendering cocos does). enclosed custom calls between glpushattrib(gl_all_attrib_bits) , glpopattrib(). can (sometimes) see resulting custom drawn sprite other sprites managed cocos drawn in incorrect positons, wrong colors/textures or not drawn @ all. subclassing node did not change thing. have considered ccdrawnode... using v3.0 in mac os 10.8.x mac build. have ensure cocos gl-pipeline not affected (and make both work expected)?

edit: asking is; isn't enough use glpushattrib(gl_all_attrib_bits) , glpopattrib()?


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -