[Mesa-dev] [PATCH v2 2/8] st/mesa: Use the new _mesa_init_transform_feedback_object() helper.

Kenneth Graunke kenneth at whitecape.org
Sat Oct 26 07:35:43 CEST 2013


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 at whitecape.org>
Cc: Marek Olšák <maraeo at gmail.com>
---
 src/mesa/state_tracker/st_cb_xformfb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Compile tested with --with-gallium-drivers=swrast.  Not tested beyond that.

diff --git a/src/mesa/state_tracker/st_cb_xformfb.c b/src/mesa/state_tracker/st_cb_xformfb.c
index e1a7a88..a1c643b 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;
 }
 
-- 
1.8.3.2



More information about the mesa-dev mailing list