Bug 788408 - Part 1. fReadPixels should also respect mFlipped. r=mattwoodrow

This commit is contained in:
Kan-Ru Chen (陳侃如) 2012-10-02 10:42:09 +08:00
parent 999966f54c
commit 62ed6d182a

View File

@ -2631,7 +2631,7 @@ public:
void raw_fReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) {
BEFORE_GL_CALL;
mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
mSymbols.fReadPixels(x, FixYValue(y, height), width, height, format, type, pixels);
AFTER_GL_CALL;
}