mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-11 16:40:17 +01:00
dri/nouveau: Don't try to validate uninitialized teximages.
This commit is contained in:
parent
d03f04bfb5
commit
bc578caefb
1 changed files with 4 additions and 4 deletions
|
|
@ -183,10 +183,10 @@ teximage_fits(struct gl_texture_object *t, int level)
|
|||
struct nouveau_surface *s = &to_nouveau_texture(t)->surfaces[level];
|
||||
struct gl_texture_image *ti = t->Image[0][level];
|
||||
|
||||
return ti && (t->Target == GL_TEXTURE_RECTANGLE ||
|
||||
(s->bo && s->width == ti->Width &&
|
||||
s->height == ti->Height &&
|
||||
s->format == ti->TexFormat));
|
||||
return ti && to_nouveau_teximage(ti)->surface.bo &&
|
||||
(t->Target == GL_TEXTURE_RECTANGLE ||
|
||||
(s->bo && s->format == ti->TexFormat &&
|
||||
s->width == ti->Width && s->height == ti->Height));
|
||||
}
|
||||
|
||||
static GLboolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue