Require libGL API version 20040602, which actually exports
authorIan Romanick <idr@us.ibm.com>
Wed, 2 Jun 2004 22:24:00 +0000 (22:24 +0000)
committerIan Romanick <idr@us.ibm.com>
Wed, 2 Jun 2004 22:24:00 +0000 (22:24 +0000)
__glXGetDrawableInfo.  Make sure driCreateNewDrawable sets
pdraw->private to NULL for all failure paths.

src/mesa/drivers/dri/common/dri_util.c

index 8af4c0a50a35e7f19dd3299f1f389207ded59ad1..05bfce8f53229fc29b061c65565b420e198fcc4a 100644 (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