st/mesa: fix _mesa_init_transform_feedback_object() argument
authorBrian Paul <brianp@vmware.com>
Fri, 1 Nov 2013 14:43:22 +0000 (08:43 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 1 Nov 2013 14:43:25 +0000 (08:43 -0600)
Need to pass a pointer of the base type, not the st type.
Fixes a compiler warning.

src/mesa/state_tracker/st_cb_xformfb.c

index a1c643b9d74c793122581da6d46f85cde4f724b8..e824fe9b3cfe36e4620c316eaf107bd498eb6f53 100644 (file)
@@ -74,7 +74,7 @@ st_new_transform_feedback(struct gl_context *ctx, GLuint name)
    if (!obj)
       return NULL;
 
-   _mesa_init_transform_feedback_object(obj, name);
+   _mesa_init_transform_feedback_object(&obj->base, name);
 
    return &obj->base;
 }