I’m using two SpriteBatchNode to draw different assets int the scene.
Every Asset in the scene is using a vertex z, to be drawn in the properly order, so I have enabled depth test, and ensure the 2D projection.
All works fine, until I resize the navigator. When I’m resizing the z order appears to be erased and objects are drawn in the order added in the scene.
Also I can say that problem is only happening with the _resizeWithBrowserSize enabled in the director.
The version I’m using is : html5-v2.2.1
When _resizeWithBrowserSize was calling, the cc.Director’s setGLDefaultValues has been called, and AlphaBlending, depthTest, projection have been reset.