Skip to content

Commit

Permalink
fix: SaveScreenshotAsyncのコードを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
EbiseLutica committed Jul 16, 2024
1 parent 74ed4d4 commit 9e6281e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Promete/Windowing/GLDesktop/OpenGLDesktopWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public Texture2D TakeScreenshot()
public async Task SaveScreenshotAsync(string path, CancellationToken ct = default)
{
var img = TakeScreenshotAsImage();
await img.SaveAsPngAsync("path", ct);
await img.SaveAsPngAsync(path, ct);
}

public void Run()
Expand Down

0 comments on commit 9e6281e

Please sign in to comment.