dri/nouveau: Fix software mipmap generation on 1x1 textures.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user