st/mesa: fill in stImage->level in st_generate_mipmap()

Before, this field was always zero for all the new mipmap levels.
Fixes problems with glGetTexImage() from a generated mipmap.
This commit is contained in:
Brian Paul 2010-04-28 10:05:00 -06:00
parent ef9a8fcb1b
commit 56f99ee640
1 changed files with 3 additions and 1 deletions

View File

@ -297,7 +297,9 @@ st_generate_mipmap(GLcontext *ctx, GLenum target,
dstImage->TexFormat = srcImage->TexFormat;
stImage = (struct st_texture_image *) dstImage;
stImage = st_texture_image(dstImage);
stImage->level = dstLevel;
pipe_texture_reference(&stImage->pt, pt);
}
}