diff options
author | Adam Jackson <ajax@freedesktop.org> | 2005-01-08 03:54:38 +0000 |
---|---|---|
committer | Adam Jackson <ajax@freedesktop.org> | 2005-01-08 03:54:38 +0000 |
commit | 1074eae704f4f68a721cfb9810cd0fde3d3aed07 (patch) | |
tree | 81ba02b0c1d9935c07f4ca4388429cb00a860012 /src/glx/x11/glxext.c | |
parent | ccaa15a0812f3cdac5669cb315e5e7e9eaba9685 (diff) |
Enable libGL to be built with DRI_NEW_INTERFACE_ONLY (but don't do it yet).
Diffstat (limited to 'src/glx/x11/glxext.c')
-rw-r--r-- | src/glx/x11/glxext.c | 10 |
1 files changed, 6 insertions, 4 deletions
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; } |