commit | bab6c0a03527f3d3b5124c6540cc167e3989c068 | [log] [tgz] |
---|---|---|
author | Brian Paul <brianp@vmware.com> | Thu Apr 08 13:05:35 2010 -0600 |
committer | Brian Paul <brianp@vmware.com> | Thu Apr 08 13:11:29 2010 -0600 |
tree | 4e93dba6239e524f7a5ede012e0dca79c0b38820 | |
parent | 8ac7d7fa05f34dcded533ba17ed3cec1f69e8906 [diff] |
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