diff options
author | Brian Paul <[email protected]> | 2011-07-31 20:59:16 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-09-27 12:12:07 -0700 |
commit | 429b45e7c0001c0979e0d0fd20c3821c166da4a9 (patch) | |
tree | d6d4f193e74a1aca71e92e3d085f8ad6044548c1 /src/mesa/state_tracker | |
parent | 59348722b7a2a9ec689af0613fa8435f78a90cc4 (diff) |
mesa: Convert depth glGetTexImage() to using MapTextureImage().
Tested-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index eb73ce88228..560b6b56172 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -950,7 +950,8 @@ st_GetTexImage(struct gl_context * ctx, GLenum target, GLint level, return; } - if (format == GL_DEPTH_STENCIL_EXT) { + if (format == GL_DEPTH_STENCIL || + format == GL_DEPTH_COMPONENT) { do_map = GL_FALSE; } |