diff --git a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs index a03041e12b..a4f42568a5 100755 --- a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs +++ b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs @@ -42,7 +42,7 @@ namespace OpenRA.FileFormats.Graphics Size WindowSize { get; } int GpuMemoryUsed { get; } - void Clear( Color color ); + void Clear(); void Present(); void PumpInput(IInputHandler inputHandler); diff --git a/OpenRA.Game/Graphics/Renderer.cs b/OpenRA.Game/Graphics/Renderer.cs index 441396364b..1c86a0b110 100644 --- a/OpenRA.Game/Graphics/Renderer.cs +++ b/OpenRA.Game/Graphics/Renderer.cs @@ -75,7 +75,7 @@ namespace OpenRA.Graphics public void BeginFrame(float2 scroll, float zoom) { - device.Clear(Color.Black); + device.Clear(); WorldLineRenderer.LineWidth = zoom; float2 r1 = new float2(2f/Resolution.Width, -2f/Resolution.Height); diff --git a/OpenRA.Renderer.Cg/GraphicsDevice.cs b/OpenRA.Renderer.Cg/GraphicsDevice.cs index d377998d02..9ddc6816c2 100755 --- a/OpenRA.Renderer.Cg/GraphicsDevice.cs +++ b/OpenRA.Renderer.Cg/GraphicsDevice.cs @@ -99,7 +99,7 @@ namespace OpenRA.Renderer.Cg ErrorHandler.CheckGlError(); } - public void Clear( Color c ) + public void Clear() { Gl.glClearColor( 0, 0, 0, 0 ); ErrorHandler.CheckGlError(); diff --git a/OpenRA.Renderer.Gl/GraphicsDevice.cs b/OpenRA.Renderer.Gl/GraphicsDevice.cs index c95780e4f5..21efffde4a 100755 --- a/OpenRA.Renderer.Gl/GraphicsDevice.cs +++ b/OpenRA.Renderer.Gl/GraphicsDevice.cs @@ -79,7 +79,7 @@ namespace OpenRA.Renderer.Glsl ErrorHandler.CheckGlError(); } - public void Clear( Color c ) + public void Clear() { Gl.glClearColor( 0, 0, 0, 0 ); ErrorHandler.CheckGlError(); diff --git a/OpenRA.Renderer.Null/NullGraphicsDevice.cs b/OpenRA.Renderer.Null/NullGraphicsDevice.cs index d85e0828c8..34e53044ab 100644 --- a/OpenRA.Renderer.Null/NullGraphicsDevice.cs +++ b/OpenRA.Renderer.Null/NullGraphicsDevice.cs @@ -38,7 +38,7 @@ namespace OpenRA.Renderer.Null public void EnableScissor(int left, int top, int width, int height) { } public void DisableScissor() { } - public void Clear(Color c) { } + public void Clear() { } public void Present() { } public void PumpInput(IInputHandler ih)