if (Gdx.graphics.isGL20Available()) {
if (blendingDisabled) {
Gdx.gl20.glDisable(GL20.GL_BLEND);
} else {
GL20 gl20 = Gdx.gl20;
gl20.glEnable(GL20.GL_BLEND);
gl20.glBlendFunc(blendSrcFunc, blendDstFunc);
}
if (customShader != null)
mesh.render(customShader, GL10.GL_TRIANGLES, 0, spritesInBatch * 6);