mesa: don't map depth+stencil buffer twice in glReadPixels()
authorBrian Paul <brianp@vmware.com>
Wed, 16 Nov 2011 14:47:51 +0000 (07:47 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 16 Nov 2011 15:49:22 +0000 (08:49 -0700)
commitf6a50c0b1ff620d1b721968144a56452c0bd6d85
tree59470ce86cab923f1b8b710ee18cdcccf14dd84d
parent728a830fae690a4c6063ba4829dabe450b6c287d
mesa: don't map depth+stencil buffer twice in glReadPixels()

In slow_read_depth_stencil_pixels_separate() we might have separate
depth and stencil buffers or a combined buffer.  In the later case,
don't map the buffer twice.  This function is used when the depth
scale/bias pixel transfer values are not the defaults.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=42963

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/mesa/main/readpix.c