From 24ebc0d987195900e3236f2e8982780cbe27d32b Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 25 May 2014 17:46:42 -0700 Subject: [PATCH] Flip framebuffer y correctly. And here I just corrected another commit doing this wrong a few weeks ago. Shame. --- GPU/GLES/Framebuffer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index aa8f030238..a129b2656e 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -1310,7 +1310,8 @@ void FramebufferManager::BlitFramebuffer_(VirtualFramebuffer *dst, int dstX, int int dstY1 = dstY2 + h * dstYFactor; if (flip) { - std::swap(dstY1, dstY2); + dstY1 = dst->renderHeight - dstY1; + dstY2 = dst->renderHeight - dstY2; } #ifdef MAY_HAVE_GLES3