diff --git a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs index 8e44f22817..bd75998507 100755 --- a/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs +++ b/OpenRA.FileFormats/Graphics/IGraphicsDevice.cs @@ -54,9 +54,6 @@ namespace OpenRA.FileFormats.Graphics void EnableDepthBuffer(); void DisableDepthBuffer(); - - void EnableStencilBuffer(); - void DisableStencilBuffer(); } public interface IVertexBuffer diff --git a/OpenRA.Game/Graphics/Renderer.cs b/OpenRA.Game/Graphics/Renderer.cs index 865d296b93..ccdbc0526c 100644 --- a/OpenRA.Game/Graphics/Renderer.cs +++ b/OpenRA.Game/Graphics/Renderer.cs @@ -206,17 +206,5 @@ namespace OpenRA.Graphics Flush(); Device.DisableDepthBuffer(); } - - public void EnableStencilBuffer() - { - Flush(); - Device.EnableStencilBuffer(); - } - - public void DisableStencilBuffer() - { - Flush(); - Device.DisableStencilBuffer(); - } } } diff --git a/OpenRA.Renderer.Null/NullGraphicsDevice.cs b/OpenRA.Renderer.Null/NullGraphicsDevice.cs index e1fbfab9a1..a390ec6b30 100644 --- a/OpenRA.Renderer.Null/NullGraphicsDevice.cs +++ b/OpenRA.Renderer.Null/NullGraphicsDevice.cs @@ -41,9 +41,6 @@ namespace OpenRA.Renderer.Null public void EnableDepthBuffer() { } public void DisableDepthBuffer() { } - public void EnableStencilBuffer() { } - public void DisableStencilBuffer() { } - public void Clear() { } public void Present() { } diff --git a/OpenRA.Renderer.SdlCommon/SdlGraphics.cs b/OpenRA.Renderer.SdlCommon/SdlGraphics.cs index 0dd415474e..5c0ed284b1 100644 --- a/OpenRA.Renderer.SdlCommon/SdlGraphics.cs +++ b/OpenRA.Renderer.SdlCommon/SdlGraphics.cs @@ -134,24 +134,6 @@ namespace OpenRA.Renderer.SdlCommon ErrorHandler.CheckGlError(); } - public void EnableStencilBuffer() - { - Gl.glClear(Gl.GL_STENCIL_BUFFER_BIT); - ErrorHandler.CheckGlError(); - Gl.glEnable(Gl.GL_STENCIL_TEST); - ErrorHandler.CheckGlError(); - Gl.glStencilFunc(Gl.GL_NOTEQUAL, 1, 1); - ErrorHandler.CheckGlError(); - Gl.glStencilOp(Gl.GL_KEEP, Gl.GL_KEEP, Gl.GL_INCR); - ErrorHandler.CheckGlError(); - } - - public void DisableStencilBuffer() - { - Gl.glDisable(Gl.GL_STENCIL_TEST); - ErrorHandler.CheckGlError(); - } - public void EnableDepthBuffer() { Gl.glClear(Gl.GL_DEPTH_BUFFER_BIT);