mono/MonoGame — pull request #47 by cadahl (2011-10-15 11:58:17+00:00)
Title: SamplerState/SpriteBatch fix

Fix SpriteBatch not setting up SamplerState.

Filter modes are bound to texture objects in OpenGL, in XNA/D3D they are part of sampler state objects independent of textures. This patch fixes it for SpriteBatch, which now updates filter/wrap modes on the texture object every time it binds one. I added an internal Activate() method to SamplerState to make one "active" for this purpose.

(Texture2D.generateOpenGLTexture() just sets up the object to use linear filtering and leaves it at that.)