added runtime-check that pooled objects are not used from multiple threads (only in DEBUG mode)
fixed check for state changes in quad batching

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