From be6227d29dcf443d9b8bae66d3d2f0b946874a83 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 25 Oct 2013 15:58:46 -0700 Subject: [PATCH] st/mesa: Use the new _mesa_init_transform_feedback_object() helper. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/mesa/state_tracker/st_cb_xformfb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.30.2