Correct glReadPixels() from offset.

This commit is contained in:
Unknown W. Brackets
2015-12-12 21:21:38 -08:00
parent 666b31c08e
commit 003d1ea0f3
+1 -1
View File
@@ -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