[Mesa-dev] [PATCH 2/4] st/mesa: silence a valgrind warning in u_threaded_context due to st_draw_vbo
Marek Olšák
maraeo at gmail.com
Wed May 17 19:14:20 UTC 2017
From: Marek Olšák <marek.olsak at amd.com>
---
src/mesa/state_tracker/st_draw.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 019001f..fe03a4a 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -177,20 +177,21 @@ st_draw_vbo(struct gl_context *ctx,
} else {
/* indices are in user space memory */
info.has_user_indices = true;
info.index.user = ib->ptr;
}
setup_primitive_restart(ctx, &info);
}
else {
info.index_size = 0;
+ info.has_user_indices = false;
/* Transform feedback drawing is always non-indexed. */
/* Set info.count_from_stream_output. */
if (tfb_vertcount) {
if (!st_transform_feedback_draw_init(tfb_vertcount, stream, &info))
return;
}
}
assert(!indirect);
--
2.7.4
More information about the mesa-dev
mailing list