fixed check for state changes in quad batching

previously, quads with different blend mode did not cause a state change