Some further perf improvements for glReadPixels