I have an sorting problem with sprites, when sprite with bigger z value is drawn AFTER sprite with smaller z value, the sprite with bigger z doesn´t be fully drawn.
Even transparent fragments write to the zbuffer. If you can’t sort then using alpha testing on fragments can fix problems like yours.
glAphaFunc(GL_GREATER, 0.0f);
glEnable(GL_ALPHA_TEST);
It’s good practice to disable it when you’re done, but don’t enable it and disable it between each tree or anything silly like that.
wow, thanks