mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
use correct mipmap level in st_render_texture()
This commit is contained in:
parent
e23a7b2ea4
commit
2b31b413f9
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue