OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f63dbc6
)
st/mesa: specify source mipmap level in decompress_with_blit()
author
Brian Paul
<brianp@vmware.com>
Sat, 17 Sep 2011 19:21:08 +0000
(13:21 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 21 Sep 2011 02:17:42 +0000
(20:17 -0600)
This, along with the previous patch, fixes glGetTexImage() of compressed
textures for level > 0.
src/mesa/state_tracker/st_cb_texture.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_texture.c
b/src/mesa/state_tracker/st_cb_texture.c
index
68323a3
..
97c1fab
100644
(file)
--- 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) */