The output of glReadPixels is in inverted when GLTexture is not inverterd. (cherry picked from commit 62af1761)