94780b5ee6
We can use the core Mesa code for glReadPixels now. We just have to validate state and flush the bitmap cache before reading.