diff options
author | Marek Olšák <maraeo@gmail.com> | 2013-02-13 22:23:37 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2013-02-18 17:57:41 +0100 |
commit | 91acf6225a5e3f08388e6bff8f2c4213769120fe (patch) | |
tree | bbc28625232d443c7dde633eaacff816b4d8836c /src/mesa/state_tracker | |
parent | 0181e18d0f978ef8f20621dd8243513e7cd451fa (diff) |
st/mesa: fix blit-based GetTexImage for depth/stencil formats
BTW, we have 0 tests for glGetTexImage(format=GL_DEPTH*).
Reviewed-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 5b3d2abcdc2..b0d4ea596a0 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -777,7 +777,7 @@ st_GetTexImage(struct gl_context * ctx, blit.src.box.width = blit.dst.box.width = width; blit.src.box.height = blit.dst.box.height = height; blit.src.box.depth = blit.dst.box.depth = depth; - blit.mask = PIPE_MASK_RGBA; + blit.mask = get_blit_mask(texImage->_BaseFormat, format); blit.filter = PIPE_TEX_FILTER_NEAREST; blit.scissor_enable = FALSE; |