avoid an unnecessary overload

This commit is contained in:
Matthias Mailänder
2015-08-03 14:08:25 +02:00
parent 4059f83b7e
commit f7b0454b9e
2 changed files with 1 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ namespace OpenRA
Bitmap bitmap;
using (new PerfTimer("Renderer.TakeScreenshot"))
bitmap = Renderer.TakeScreenshot();
bitmap = Renderer.Device.TakeScreenshot();
ThreadPool.QueueUserWorkItem(_ =>
{

View File

@@ -161,11 +161,6 @@ namespace OpenRA
DrawBatch(tempBuffer, 0, numVertices, type);
}
public Bitmap TakeScreenshot()
{
return Device.TakeScreenshot();
}
public void DrawBatch<T>(IVertexBuffer<T> vertices,
int firstVertex, int numVertices, PrimitiveType type)
where T : struct