projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e23a7b2
)
use correct mipmap level in st_render_texture()
author
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 20:13:21 +0000
(14:13 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Wed, 10 Oct 2007 20:13:21 +0000
(14:13 -0600)
src/mesa/state_tracker/st_cb_fbo.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_cb_fbo.c
b/src/mesa/state_tracker/st_cb_fbo.c
index 4a21ff53712403abdefab5b91c68f8d8507f2e10..3e4aeab52362eb7ed91f4a2d92704c96e6bdaf17 100644
(file)
--- a/
src/mesa/state_tracker/st_cb_fbo.c
+++ b/
src/mesa/state_tracker/st_cb_fbo.c
@@
-316,10
+316,10
@@
st_render_texture(GLcontext *ctx,
/* get the mipmap tree for the texture */
mt = st_get_texobj_mipmap_tree(att->Texture);
assert(mt);
- assert(mt->level[
0
].width);
+ assert(mt->level[
att->TextureLevel
].width);
- rb->Width = mt->level[
0
].width;
- rb->Height = mt->level[
0
].height;
+ rb->Width = mt->level[
att->TextureLevel
].width;
+ rb->Height = mt->level[
att->TextureLevel
].height;
/* the renderbuffer's surface is inside the mipmap_tree: */
strb->surface = pipe->get_tex_surface(pipe, mt,