st/mesa: Validate the state in st_readpixels.
authorChia-I Wu <olv@lunarg.com>
Sat, 13 Mar 2010 12:30:03 +0000 (20:30 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 13 Mar 2010 12:34:45 +0000 (20:34 +0800)
commit8c210c1b3b5e63eebae2b73814d2000520576ce7
treef9b23a1843fd41bf17f690996a2712f317560907
parent66cd38f465499863de106e1ae83b5de85072c29b
st/mesa: Validate the state in st_readpixels.

The front renderbuffer of a framebuffer is usually added as needed when
glReadBuffer(GL_FRONT) is called.  When the call is followed by
glReadPixels, we should validate the state before reading from the
renderbuffer.
src/mesa/state_tracker/st_cb_readpixels.c