private void SetRenderTargets(out RenderTargetBinding[] oldBindings, out RenderTarget2D newRenderTarget)
{
oldBindings = Game1.GetInstance().GraphicsDevice.GetRenderTargets();
Game1.GetInstance().GraphicsDevice.SetRenderTargets(null);
// Get the Texture with the screen drawn on it
// Create the Render Target to draw the scaled Texture to
newRenderTarget =
new RenderTarget2D(Game1.GetInstance().GraphicsDevice, (int)this.miniMapTileSize.X, (int)this.miniMapTileSize.Y);
// Set the given Graphics Device to draw to the new Render Target
Game1.GetInstance().GraphicsDevice.SetRenderTarget(newRenderTarget);
}