From 888710cbc58bbedb20b6708f50c61d97fae53b12 Mon Sep 17 00:00:00 2001 From: Paul Chote Date: Thu, 11 Nov 2010 11:14:44 +1300 Subject: [PATCH] Enable alpha blending --- OpenRA.Renderer.Gl/GraphicsDevice.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OpenRA.Renderer.Gl/GraphicsDevice.cs b/OpenRA.Renderer.Gl/GraphicsDevice.cs index 67899f5e6d..78849cbdd5 100755 --- a/OpenRA.Renderer.Gl/GraphicsDevice.cs +++ b/OpenRA.Renderer.Gl/GraphicsDevice.cs @@ -84,7 +84,10 @@ namespace OpenRA.Renderer.Glsl CheckGlError(); Gl.glEnableClientState( Gl.GL_TEXTURE_COORD_ARRAY ); CheckGlError(); - + + Gl.glEnable(Gl.GL_BLEND); + Gl.glBlendFunc(Gl.GL_SRC_ALPHA, Gl.GL_ONE_MINUS_SRC_ALPHA); + Sdl.SDL_SetModState( 0 ); // i have had enough. }