summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2010-09-17 20:58:43 +0200
committerFrancisco Jerez <[email protected]>2010-09-21 03:04:04 +0200
commitbf8f24c1c84ab39207301ae5d298850d72e11876 (patch)
treef8126574429e017c19b174cac1be25fa12396665
parent98add55fffc29e0c40859fd5e9cec47fa1e352f5 (diff)
dri/nouveau: Fix software mipmap generation on 1x1 textures.
-rw-r--r--src/mesa/drivers/dri/nouveau/nouveau_texture.c2
1 files changed, 1 insertions, 1 deletions
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;