From: Kenneth Graunke Date: Fri, 25 Oct 2013 22:58:46 +0000 (-0700) Subject: st/mesa: Use the new _mesa_init_transform_feedback_object() helper. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be6227d29dcf443d9b8bae66d3d2f0b946874a83;p=mesa.git st/mesa: Use the new _mesa_init_transform_feedback_object() helper. This picks up a missing obj->EverBound = GL_FALSE line, and will catch any new fields that get added in the future. Signed-off-by: Kenneth Graunke Reviewed-by: Marek Olšák Reviewed-by: Eric Anholt --- diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c index e1a7a88a165..a1c643b9d74 100644 --- a/src/mesa/state_tracker/st_cb_xformfb.c +++ b/src/mesa/state_tracker/st_cb_xformfb.c @@ -74,8 +74,8 @@ st_new_transform_feedback(struct gl_context *ctx, GLuint name) if (!obj) return NULL; - obj->base.Name = name; - obj->base.RefCount = 1; + _mesa_init_transform_feedback_object(obj, name); + return &obj->base; }