diff options
author | Michel Dänzer <michel@tungstengraphics.com> | 2007-07-10 09:02:40 +0200 |
---|---|---|
committer | Michel Dänzer <michel@tungstengraphics.com> | 2007-07-10 09:02:40 +0200 |
commit | 161624a5a45808fd56141dc2c64be729944f03ed (patch) | |
tree | 1383a211bd3d8ca54b209c1b640e1615a90ae666 /GL/glx/glxext.c | |
parent | 4abd00dab7e648dab8172f6009371e4e63d0c521 (diff) |
GLX: Only build code dealing with GLXPixmap damage field when DRI is enabled.
Diffstat (limited to 'GL/glx/glxext.c')
-rw-r--r-- | GL/glx/glxext.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/GL/glx/glxext.c b/GL/glx/glxext.c index b4f3105aa..b35175ed2 100644 --- a/GL/glx/glxext.c +++ b/GL/glx/glxext.c @@ -172,10 +172,12 @@ static int PixmapGone(__GLXpixmap *pGlxPixmap, XID id) pGlxPixmap->idExists = False; if (!pGlxPixmap->refcnt) { +#ifdef XF86DRI if (pGlxPixmap->pDamage) { DamageUnregister (pGlxPixmap->pDraw, pGlxPixmap->pDamage); DamageDestroy(pGlxPixmap->pDamage); } +#endif /* ** The DestroyPixmap routine should decrement the refcount and free ** only if it's zero. |