Fixing sampler state flushing to take into account state changes that are more than just the instance of the OpenGLTexture changing.
Applying patch from Ethan to fix up style and simplify a little bit.
Merge pull request #223 from brushfiregames/brushfiregames/sampler-state-flush

Fixing sampler state flushing