summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/common/dri_util.c
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2004-06-02 17:37:09 +0000
committerIan Romanick <idr@us.ibm.com>2004-06-02 17:37:09 +0000
commit318aa8409983f3292b4919196df2ca42f4de6a16 (patch)
treef48b7119722dd727a101b976303987c0eb36480d /src/mesa/drivers/dri/common/dri_util.c
parent9fcb9c3ac7adb7eaa37a8da4e741ce99dcd651a2 (diff)
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.
Diffstat (limited to 'src/mesa/drivers/dri/common/dri_util.c')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 6b251c1cd6..8af4c0a50a 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -37,12 +37,12 @@
#include <extutil.h>
#include <stdio.h>
#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