Optimize GL1 by caching a sampler state per texture.