diff options
author | Ian Romanick <idr@us.ibm.com> | 2004-06-01 19:20:12 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2004-06-01 19:20:12 +0000 |
commit | ec032cb17b2ffb7b9401604258234998612b445f (patch) | |
tree | dca0536f182181e30d9a62cb753ebeeb707484ed /src/mesa/drivers/dri/common/dri_util.c | |
parent | 0521ab46c1340d785ecfe64f4041c86912bc86af (diff) |
Fix a couple issues related to GetDrawableInfo. In the new DRI
interface, it must be available from libGL, and the the typedef in
dri_util.h was wrong.
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r-- | src/mesa/drivers/dri/common/dri_util.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 9a8d247e59..13101755b3 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -826,7 +826,13 @@ static void *driCreateNewDrawable(Display *dpy, pdp->getInfo = (GetDrawableInfo *) glXGetProcAddress( (const GLubyte *) "__glXGetDrawableInfo" ); if ( pdp->getInfo == NULL ) { +#ifdef DRI_NEW_INTERFACE_ONLY + (void)XF86DRIDestroyDrawable(dpy, modes->screen, pdp->draw); + Xfree(pdp); + return NULL; +#else pdp->getInfo = XF86DRIGetDrawableInfo; +#endif /* DRI_NEW_INTERFACE_ONLY */ } if (!(*psp->DriverAPI.CreateBuffer)(psp, pdp, modes, |