Some of my sprites don't "Blend" in with tiles behind them Z-wise.
Depth testing is enabled and works.
glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
The blend function is above.
Below is a picture of four different instances of the application. As you can see, blending works on random sprites.
Why aren't some of the sprites blending?
An observation that I made is that when I move the sprites (layers 0 and 1) below (Z-wise) the button, you can see the sprites from the gaps left by letters (layer 10), yet the button itself (layer 9) doesn't show in that area. This is what I find the strangest.