Commit 4ef2f40e authored by idr's avatar idr
Browse files

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.
parent 7cec50b6
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment