diff --git a/OpenRA.Game/Game.cs b/OpenRA.Game/Game.cs index a6a909b1c1..50440fb468 100644 --- a/OpenRA.Game/Game.cs +++ b/OpenRA.Game/Game.cs @@ -391,7 +391,7 @@ namespace OpenRA Bitmap bitmap; using (new PerfTimer("Renderer.TakeScreenshot")) - bitmap = Renderer.TakeScreenshot(); + bitmap = Renderer.Device.TakeScreenshot(); ThreadPool.QueueUserWorkItem(_ => { diff --git a/OpenRA.Game/Renderer.cs b/OpenRA.Game/Renderer.cs index 2669b2db52..25206015a4 100644 --- a/OpenRA.Game/Renderer.cs +++ b/OpenRA.Game/Renderer.cs @@ -161,11 +161,6 @@ namespace OpenRA DrawBatch(tempBuffer, 0, numVertices, type); } - public Bitmap TakeScreenshot() - { - return Device.TakeScreenshot(); - } - public void DrawBatch(IVertexBuffer vertices, int firstVertex, int numVertices, PrimitiveType type) where T : struct