st/mesa: Use the new _mesa_init_transform_feedback_object() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 25 Oct 2013 22:58:46 +0000 (15:58 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 31 Oct 2013 18:04:37 +0000 (11:04 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/state_tracker/st_cb_xformfb.c

index e1a7a88a16547c91998c32a4fe6fa82432acc638..a1c643b9d74c793122581da6d46f85cde4f724b8 100644 (file)
@@ -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;
 }