From 003d1ea0f369bbdf09d0a626b7aa0eafc52fcfce Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 12 Dec 2015 21:21:38 -0800 Subject: [PATCH] Correct glReadPixels() from offset. --- GPU/GLES/Framebuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/GLES/Framebuffer.cpp b/GPU/GLES/Framebuffer.cpp index 8b86fbaaef..cab4e37f07 100644 --- a/GPU/GLES/Framebuffer.cpp +++ b/GPU/GLES/Framebuffer.cpp @@ -1568,7 +1568,7 @@ static void SafeGLReadPixels(GLint x, GLint y, GLsizei w, GLsizei h, GLenum fmt, glPixelStorei(GL_PACK_ROW_LENGTH, w); } - glReadPixels(0, 0, w, h, fmt, type, pixels); + glReadPixels(x, y, w, h, fmt, type, pixels); #ifdef DEBUG_READ_PIXELS LogReadPixelsError(glGetError()); #endif