st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) color output
authorBrian Paul <brianp@vmware.com>
Fri, 8 Jun 2012 20:26:53 +0000 (14:26 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 14 Jun 2012 20:37:31 +0000 (14:37 -0600)
commitf677954e07c6c1fd59b13622a7420c97d68a6029
treeb3640d209c5d07d24bce09c0d68b60992651ed9a
parent8031aa134ebcdcaad3c7b1d10f41c1f033382d30
st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) color output

When drawing a depth image the fragment shader also needs to emit the
current raster color.

The new piglit drawpix-z test exercises this.

NOTE: This is a candiate for the 8.0 branch.
src/mesa/state_tracker/st_cb_drawpixels.c