swrast: Use MapRenderbuffer for glReadPixels(GL_DEPTH_COMPONENT) fast-paths.
authorEric Anholt <eric@anholt.net>
Tue, 11 Oct 2011 22:08:15 +0000 (15:08 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 22:42:18 +0000 (15:42 -0700)
commit8524be3fb46e2db6db099d9916dad85f38bfe054
treed29a64b2e67688d145d289eeddb07033c7823864
parent789cb3435c6d580929094b7f1a2dff551e9c411c
swrast: Use MapRenderbuffer for glReadPixels(GL_DEPTH_COMPONENT) fast-paths.

This fixes issues with the code playing fast and loose with types of
buffers, and as a bonus avoids the wrappers that were previously used
to pull bits out of packed depth/stencil buffers.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/swrast/s_readpix.c