From 271d2b41faa670c596928d0e0437361f6aea74ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Wed, 6 Nov 2024 17:52:45 +0100 Subject: [PATCH] Bugfix taking screenshots of rotated framebuffers, common in Vulkan on many Android devices --- Core/Screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/Screenshot.cpp b/Core/Screenshot.cpp index bb12cb3b31..3a7066ba35 100644 --- a/Core/Screenshot.cpp +++ b/Core/Screenshot.cpp @@ -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); }