diff options
author | Brian Paul <[email protected]> | 2011-09-17 13:21:08 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-20 20:17:42 -0600 |
commit | 20b92c9d1ed8802cf0acb1c24884d0cef2bce10e (patch) | |
tree | 2a4b30dd46d2ad0721bbf731533f2f4eb543fcd9 /src | |
parent | f63dbc600fa95601ca8239ed5e3c3e439fe4565f (diff) |
st/mesa: specify source mipmap level in decompress_with_blit()
This, along with the previous patch, fixes glGetTexImage() of compressed
textures for level > 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_texture.c b/src/mesa/state_tracker/st_cb_texture.c index 68323a35a73..97c1fabd52e 100644 --- a/src/mesa/state_tracker/st_cb_texture.c +++ b/src/mesa/state_tracker/st_cb_texture.c @@ -849,6 +849,9 @@ decompress_with_blit(struct gl_context * ctx, GLenum target, GLint level, pipe->render_condition(pipe, NULL, 0); } + /* Choose the source mipmap level */ + src_view->u.tex.first_level = src_view->u.tex.last_level = level; + /* blit/render/decompress */ util_blit_pixels_tex(st->blit, src_view, /* pipe_resource (src) */ |