mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
dri/nouveau: Fix software mipmap generation on 1x1 textures.
This commit is contained in:
parent
98add55fff
commit
bf8f24c1c8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue