mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-21 01:13:38 +00:00
Fixes a few problems in Xgl
This commit is contained in:
parent
35bd81dfec
commit
046bdb1716
5 changed files with 16 additions and 24 deletions
|
|
@ -137,9 +137,15 @@ xglGlyphCompareScore (xglAreaPtr pArea,
|
|||
{
|
||||
xglGlyphCachePtr pCache = (xglGlyphCachePtr) pArea->pRoot->closure;
|
||||
GlyphPtr pGlyph = (GlyphPtr) closure2;
|
||||
xglGlyphAreaPtr pAreaPriv;
|
||||
|
||||
XGL_GLYPH_PRIV (pCache->pScreen, pGlyph);
|
||||
GLYPH_AREA_PRIV (pGlyphPriv->pArea);
|
||||
|
||||
/* this shouldn't be needed, seems like a bug in xglarea.c */
|
||||
if (!pGlyphPriv->pArea)
|
||||
return 1;
|
||||
|
||||
pAreaPriv = GLYPH_GET_AREA_PRIV (pGlyphPriv->pArea);
|
||||
|
||||
if (pAreaPriv->serial != glyphSerialNumber)
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue