1e2d88e789
glReadPixel takes window coordinates not viewport coordinates so we shouldn't have been assuming that the viewport height == window height.