Require libGL API version 20040602, which actually exports

__glXGetDrawableInfo.  Make sure driCreateNewDrawable sets
pdraw->private to NULL for all failure paths.
This commit is contained in:
Ian Romanick 2004-06-02 22:24:00 +00:00
parent 5c113461df
commit 1960182ece
1 changed files with 4 additions and 2 deletions

View File

@ -783,6 +783,8 @@ static void *driCreateNewDrawable(__DRInativeDisplay *dpy,
__DRIdrawablePrivate *pdp;
pdraw->private = NULL;
/* Since pbuffers are not yet supported, no drawable attributes are
* supported either.
*/
@ -1174,9 +1176,9 @@ __driUtilCreateNewScreen(__DRInativeDisplay *dpy, int scrn, __DRIscreen *psc,
#ifdef DRI_NEW_INTERFACE_ONLY
if ( internal_api_version < 20040415 ) {
if ( internal_api_version < 20040602 ) {
fprintf( stderr, "libGL error: libGL.so version (%08u) is too old. "
"20040415 or later is required.\n", internal_api_version );
"20040602 or later is required.\n", internal_api_version );
return NULL;
}
#else