diff options
author | idr <idr> | 2004-06-02 22:21:31 +0000 |
---|---|---|
committer | idr <idr> | 2004-06-02 22:21:31 +0000 |
commit | 4ef2f40e4f7ff41a1d3f60ee99fdb19bdd25b95d (patch) | |
tree | a9185ba58e1dafa4cc21ec1cf14da6cd4e9320e9 | |
parent | 7cec50b6cdc5c1864b443884a67132c9dcbdf825 (diff) |
Add __glXGetDrawableInfo to the internal glXGetProcAddress table and
bump the API version. This is done so that DRI_NEW_INTERFACE_ONLY
drivers, which *need* that function can bail early with a clear message.
-rw-r--r-- | xc/lib/GL/glx/glxcmds.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xc/lib/GL/glx/glxcmds.c b/xc/lib/GL/glx/glxcmds.c index 2713fd03d..d62520879 100644 --- a/xc/lib/GL/glx/glxcmds.c +++ b/xc/lib/GL/glx/glxcmds.c @@ -179,7 +179,7 @@ static const char __glXGLXClientVersion[] = "1.2"; const char __glXGLClientVersion[] = "1.2"; #ifdef GLX_DIRECT_RENDERING -extern Bool XF86DRICreateContextWithConfig( void ); +#include "xf86dri.h" static Bool __glXWindowExists(Display *dpy, GLXDrawable draw); @@ -3182,6 +3182,7 @@ static const struct name_address_pair GLX_functions[] = { GLX_FUNCTION( __glXGetInternalVersion ), GLX_FUNCTION( __glXWindowExists ), GLX_FUNCTION2( __glXCreateContextWithConfig, XF86DRICreateContextWithConfig ), + GLX_FUNCTION2( __glXGetDrawableInfo, XF86DRIGetDrawableInfo ), /*** DRI configuration ***/ GLX_FUNCTION( glXGetScreenDriver ), @@ -3304,8 +3305,10 @@ int __glXGetInternalVersion(void) * compatibility bugs, use 20040317 instead. * 20040317 - Added the 'mode' field to __DRIcontextRec. * 20040415 - Added support for bindContext3 and unbindContext3. + * 20040602 - Add __glXGetDrawableInfo. I though that was there + * months ago. :( */ - return 20040415; + return 20040602; } |