summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_cb_fbo.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-10 14:13:21 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-10 14:13:21 -0600
commit2b31b413f97c73816a2845782aee9a49e22d2e0b (patch)
tree4ff5c0714830461b1572ac0d0804afb7e98246a4 /src/mesa/state_tracker/st_cb_fbo.c
parente23a7b2ea4a311af6b661f10747716e28fa451db (diff)
use correct mipmap level in st_render_texture()
Diffstat (limited to 'src/mesa/state_tracker/st_cb_fbo.c')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index 4a21ff5371..3e4aeab523 100644
--- 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,