st/mesa: fix glDrawPixels(depth/stencil) bugs
authorBrian Paul <brianp@vmware.com>
Tue, 16 Nov 2010 01:36:50 +0000 (18:36 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 16 Nov 2010 01:40:32 +0000 (18:40 -0700)
commit20c2debce82e36166ae0326a3fb94be42d71be4a
tree65df6a1e97a555cb1a1652070d9cf706f07eff92
parent32aaf89823de11e98cb59d5ec78c66cd3e74bcd4
st/mesa: fix glDrawPixels(depth/stencil) bugs

When drawing GL_DEPTH_COMPONENT the usual fragment pipeline steps apply
so don't override the depth state.

When drawing GL_STENCIL_INDEX (or GL_DEPTH_STENCIL) the fragment pipeline
does not apply (only the stencil and Z writemasks apply) so disable writes
to the color buffers.

Fixes some regressions from commit ef8bb7ada98f1ddc8e2554a7336af5d669cb1290
src/mesa/state_tracker/st_cb_drawpixels.c