diff --git a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs index 272f2bb414..0a46b9024d 100755 --- a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs +++ b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs @@ -64,7 +64,6 @@ namespace OpenRA.FileFormats.Graphics { void SetValue( string name, float x, float y ); void SetValue( string param, ITexture texture ); - void Commit(); void Render( Action a ); } diff --git a/OpenRA.Game/Graphics/Renderer.cs b/OpenRA.Game/Graphics/Renderer.cs index df1edebcbf..3738e607ef 100644 --- a/OpenRA.Game/Graphics/Renderer.cs +++ b/OpenRA.Game/Graphics/Renderer.cs @@ -89,7 +89,6 @@ namespace OpenRA.Graphics s.SetValue( "Scroll", (int) scroll.X, (int) scroll.Y ); s.SetValue( "r1", r1.X, r1.Y ); s.SetValue( "r2", r2.X, r2.Y ); - s.Commit(); } public void EndFrame( IInputHandler inputHandler ) diff --git a/OpenRA.Renderer.Cg/Shader.cs b/OpenRA.Renderer.Cg/Shader.cs index e12056d772..0cd7d0bdfc 100644 --- a/OpenRA.Renderer.Cg/Shader.cs +++ b/OpenRA.Renderer.Cg/Shader.cs @@ -12,7 +12,6 @@ using System; using System.IO; using OpenRA.FileFormats; using OpenRA.FileFormats.Graphics; -using Tao.Cg; namespace OpenRA.Renderer.Cg { @@ -81,7 +80,5 @@ namespace OpenRA.Renderer.Cg if (param != IntPtr.Zero) Tao.Cg.CgGl.cgGLSetParameter2f(param, x, y); } - - public void Commit() { } } } diff --git a/OpenRA.Renderer.Gl/Shader.cs b/OpenRA.Renderer.Gl/Shader.cs index 0642686f71..42b8526628 100644 --- a/OpenRA.Renderer.Gl/Shader.cs +++ b/OpenRA.Renderer.Gl/Shader.cs @@ -9,12 +9,12 @@ #endregion using System; +using System.Collections.Generic; using System.IO; +using System.Text; using OpenRA.FileFormats; using OpenRA.FileFormats.Graphics; using Tao.OpenGl; -using System.Text; -using System.Collections.Generic; namespace OpenRA.Renderer.Glsl { @@ -141,7 +141,5 @@ namespace OpenRA.Renderer.Glsl Gl.glUniform2fARB(param,x,y); GraphicsDevice.CheckGlError(); } - - public void Commit() { } } }