mono/MonoGame — pull request #61 by cadahl (2011-10-22 21:47:14+00:00)
Title: Refactored SamplerState fix for SpriteBatch

This should be much nicer.

* Moved the wrapping mode translation into GraphicsExtensions.
* Added more generic ApplyTo extension for SpriteBatch in GraphicsExtensions (arch/API specific stuff kept out of SamplerState itself).

* Bonus fix in SpriteBatcher.cs, you were using a bad texenv value:
- GL.TexEnv (TextureEnvTarget.TextureEnv, TextureEnvParameter.TextureEnvMode, (int)All.BlendSrc);
167
+ GL.TexEnv (TextureEnvTarget.TextureEnv, TextureEnvParameter.TextureEnvMode, (int)All.Blend);

Please review the changes, I'm not sure what happened with Lidgren Network in the csproj. :( I'm really not friends with git yet.