Skip to content
  • Brian Paul's avatar
    st/mesa: fix glDrawPixels(GL_DEPTH_COMPONENT) regression · bab6c0a0
    Brian Paul authored
    Commit 1454f20a 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
    bab6c0a0