From d5b122b09287abda5a29d648e0a068f1a89264d6 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Fri, 12 Aug 2016 07:34:05 +0200 Subject: [PATCH] Fix GetScreenshotBuffer grabbing from wrong location --- src/gl/system/gl_framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gl/system/gl_framebuffer.cpp b/src/gl/system/gl_framebuffer.cpp index d06b917a63..fb752c5714 100644 --- a/src/gl/system/gl_framebuffer.cpp +++ b/src/gl/system/gl_framebuffer.cpp @@ -473,7 +473,7 @@ void OpenGLFrameBuffer::FillSimplePoly(FTexture *texture, FVector2 *points, int void OpenGLFrameBuffer::GetScreenshotBuffer(const BYTE *&buffer, int &pitch, ESSType &color_type) { - const auto &viewport = GLRenderer->mScreenViewport; + const auto &viewport = GLRenderer->mOutputLetterbox; // Grab what is in the back buffer. // We cannot rely on SCREENWIDTH/HEIGHT here because the output may have been scaled.