From: Brian Paul Date: Fri, 1 Nov 2013 14:43:22 +0000 (-0600) Subject: st/mesa: fix _mesa_init_transform_feedback_object() argument X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2197967cd4e04365fd9c2eae0351f3e39f839766;p=mesa.git st/mesa: fix _mesa_init_transform_feedback_object() argument Need to pass a pointer of the base type, not the st type. Fixes a compiler warning. --- diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index a1c643b9d74..e824fe9b3cf 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -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; }