OSDN Git Service

st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression
authorBrian Paul <brianp@vmware.com>
Thu, 8 Apr 2010 19:05:35 +0000 (13:05 -0600)
committerBrian Paul <brianp@vmware.com>
Thu, 8 Apr 2010 19:11:29 +0000 (13:11 -0600)
commitbab6c0a03527f3d3b5124c6540cc167e3989c068
tree4e93dba6239e524f7a5ede012e0dca79c0b38820
parent8ac7d7fa05f34dcded533ba17ed3cec1f69e8906
st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression

Commit 1454f20a991ddda35f1a2ffda953012078b407ba caused the regression.
When the vertex shader emitted both a texcoord and color we were grabbing
the wrong vertex attributes.  Fix the draw_quad() code to put texcoords
in slot[1] and color in slot[2].  That's a bit cleaner than changing
the vertex shader code.

Tested with progs/tests/zreaddraw.c
src/mesa/state_tracker/st_cb_drawpixels.c