From 318aa8409983f3292b4919196df2ca42f4de6a16 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 2 Jun 2004 17:37:09 +0000 Subject: XF86DRIDestroyContext, XF86DRICreateDrawable, and XF86DRIDestroyDrawable are all called directly from DRI drivers using the new interface. Therefore, prototypes, using available datatypes, must be available in dri_interface.h. Since the prototypes are available there, xf86dri.h is no longer needed for DRI_NEW_INTERFACE_ONLY builds. --- src/mesa/drivers/dri/common/dri_util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mesa/drivers/dri/common') diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c index 6b251c1cd6b..8af4c0a50a3 100644 --- a/src/mesa/drivers/dri/common/dri_util.c +++ b/src/mesa/drivers/dri/common/dri_util.c @@ -37,12 +37,12 @@ #include #include #include "dri_util.h" -#include "xf86dri.h" +#ifndef DRI_NEW_INTERFACE_ONLY +# include "xf86dri.h" +#endif /* DRI_NEW_INTERFACE_ONLY */ #include "sarea.h" #include "glcontextmodes.h" -/*#define DRI_NEW_INTERFACE_ONLY*/ - #ifndef GLX_OML_sync_control typedef Bool ( * PFNGLXGETMSCRATEOMLPROC) (__DRInativeDisplay *dpy, __DRIid drawable, int32_t *numerator, int32_t *denominator); #endif -- cgit v1.2.3