diff options
author | Brian <[email protected]> | 2007-11-20 08:30:10 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-11-20 08:30:10 -0700 |
commit | 0191570f024ba787799ca2bccd46549a8af74aa9 (patch) | |
tree | 24d2f85dad2588eb031fd6a9455c71d493ce1bfe /src/mesa/state_tracker/st_cb_readpixels.c | |
parent | c4f9fbb57f6e941a3b896b52c69665f7dced2350 (diff) |
initial support for PIPE_FORMAT_Z24_S8
Diffstat (limited to 'src/mesa/state_tracker/st_cb_readpixels.c')
-rw-r--r-- | src/mesa/state_tracker/st_cb_readpixels.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_readpixels.c b/src/mesa/state_tracker/st_cb_readpixels.c index c347a0b6888..2e7c01672a1 100644 --- a/src/mesa/state_tracker/st_cb_readpixels.c +++ b/src/mesa/state_tracker/st_cb_readpixels.c @@ -100,6 +100,15 @@ st_read_stencil_pixels(GLcontext *ctx, GLint x, GLint y, } } break; + case PIPE_FORMAT_Z24_S8: + { + const uint *src = (uint *) stmap + srcY * ps->region->pitch + x; + GLint k; + for (k = 0; k < width; k++) { + values[k] = src[k] & 0xff; + } + } + break; default: assert(0); } |