From a4436a8f4476344f1ec81cacf35f5693d58dcc06 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 1 Jun 2004 23:14:19 +0000 Subject: Fix dumb mistake from a previous commit. __driCreateScreen is now properly block with '#ifndef DRI_NEW_INTERFACE_ONLY'. --- src/mesa/drivers/dri/i810/i810screen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/mesa/drivers/dri/i810') diff --git a/src/mesa/drivers/dri/i810/i810screen.c b/src/mesa/drivers/dri/i810/i810screen.c index 8995ec0ba4..4071b8bcc1 100644 --- a/src/mesa/drivers/dri/i810/i810screen.c +++ b/src/mesa/drivers/dri/i810/i810screen.c @@ -393,6 +393,7 @@ static const struct __DriverAPIRec i810API = { * The __driCreateScreen name is the symbol that libGL.so fetches. * Return: pointer to a __DRIscreenPrivate. */ +#if !defined(DRI_NEW_INTERFACE_ONLY) #ifndef _SOLO void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc, int numConfigs, __GLXvisualConfig *config) @@ -401,7 +402,7 @@ void *__driCreateScreen(Display *dpy, int scrn, __DRIscreen *psc, psp = __driUtilCreateScreen(dpy, scrn, psc, numConfigs, config, &i810API); return (void *) psp; } -#elif !defined(DRI_NEW_INTERFACE_ONLY) +#else void *__driCreateScreen(struct DRIDriverRec *driver, struct DRIDriverContextRec *driverContext) { @@ -410,6 +411,7 @@ void *__driCreateScreen(struct DRIDriverRec *driver, return (void *) psp; } #endif +#endif /* !defined(DRI_NEW_INTERFACE_ONLY) */ /** * This is the bootstrap function for the driver. libGL supplies all of the -- cgit v1.2.3