From 1074eae704f4f68a721cfb9810cd0fde3d3aed07 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Sat, 8 Jan 2005 03:54:38 +0000 Subject: Enable libGL to be built with DRI_NEW_INTERFACE_ONLY (but don't do it yet). --- src/glx/x11/glxext.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/glx/x11/glxext.c') diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 1155cd92ac..397b390189 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -1523,13 +1523,14 @@ static Bool BindContextWrapper( Display *dpy, GLXContext gc, return (*gc->driContext.bindContext3)(dpy, gc->screen, draw, read, & gc->driContext); } +#ifndef DRI_NEW_INTERFACE_ONLY else { return (*gc->driContext.bindContext2)(dpy, gc->screen, draw, read, gc); } -#else - return GL_FALSE; #endif +#endif + return GL_FALSE; } @@ -1542,14 +1543,15 @@ static Bool UnbindContextWrapper( Display *dpy, GLXContext gc ) gc->currentReadable, & gc->driContext ); } +#ifndef DRI_NEW_INTERFACE_ONLY else { return (*gc->driContext.unbindContext2)(dpy, gc->screen, gc->currentDrawable, gc->currentReadable, gc); } -#else - return GL_FALSE; #endif +#endif + return GL_FALSE; } -- cgit v1.2.3