dri/nouveau: Fix software mipmap generation on 1x1 textures.

This commit is contained in:
Francisco Jerez 2010-09-17 20:58:43 +02:00
parent 98add55fff
commit bf8f24c1c8

View file

@ -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;