Fix GetScreenshotBuffer grabbing from wrong location

This commit is contained in:
Magnus Norddahl 2016-08-12 07:34:05 +02:00 committed by Christoph Oelckers
parent c817979eae
commit d5b122b092

View file

@ -473,7 +473,7 @@ void OpenGLFrameBuffer::FillSimplePoly(FTexture *texture, FVector2 *points, int
void OpenGLFrameBuffer::GetScreenshotBuffer(const BYTE *&buffer, int &pitch, ESSType &color_type) 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. // Grab what is in the back buffer.
// We cannot rely on SCREENWIDTH/HEIGHT here because the output may have been scaled. // We cannot rely on SCREENWIDTH/HEIGHT here because the output may have been scaled.