From 2197967cd4e04365fd9c2eae0351f3e39f839766 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 1 Nov 2013 08:43:22 -0600 Subject: [PATCH] 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. --- src/mesa/state_tracker/st_cb_xformfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2