Bugfix taking screenshots of rotated framebuffers, common in Vulkan on many Android devices

This commit is contained in:
Henrik Rydgård committed 2024-11-07 10:17:56 +01:00
1 parent 6fcb75ce63
commit 271d2b41fa
1 file changed
+1 -1
+1 -1
View File
@@ -346,7 +346,7 @@ bool TakeGameScreenshot(Draw::DrawContext *draw, const Path &filename, Screensho
} else if (g_display.rotation != DisplayRotation::ROTATE_0) {
_dbg_assert_(draw);
GPUDebugBuffer temp;
success = ::GetOutputFramebuffer(draw, buf);
success = ::GetOutputFramebuffer(draw, temp);
if (success) {
buf = ApplyRotation(temp, g_display.rotation);
}