From: Francisco Jerez Date: Fri, 17 Sep 2010 18:58:43 +0000 (+0200) Subject: dri/nouveau: Fix software mipmap generation on 1x1 textures. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bf8f24c1c84ab39207301ae5d298850d72e11876;p=mesa.git dri/nouveau: Fix software mipmap generation on 1x1 textures. --- diff --git a/src/mesa/drivers/dri/nouveau/nouveau_texture.c b/src/mesa/drivers/dri/nouveau/nouveau_texture.c index b2f6faf1e12..14c7b5f64b7 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_texture.c +++ b/src/mesa/drivers/dri/nouveau/nouveau_texture.c @@ -603,7 +603,7 @@ store_mipmap(GLcontext *ctx, GLenum target, int first, int last, .BufferObj = ctx->Shared->NullBufferObj, .Alignment = 1 }; - GLenum format = t->Image[0][first]->TexFormat; + GLenum format = t->Image[0][t->BaseLevel]->TexFormat; unsigned base_format, type, comps; int i;