sna/glyphs: Prevent NULL vfunc deref with glyphs

Requires running a PRIME setup with Intel loaded as the secondary GPU
and attempting to execute an empty glyph string.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-09-09 08:12:45 +01:00
parent faf0bdd477
commit 07fe45b84b
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ next_glyph:
}
list++;
}
if (glyph_atlas)
if (glyph_atlas != NO_ATLAS)
tmp.done(sna, &tmp);
return true;