From: Mathias Fröhlich Date: Fri, 16 Mar 2018 05:34:35 +0000 (+0100) Subject: vbo: Remove now duplicate _vbo_update_inputs from dlist draw. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=006b5e798a4a82590abf1e621b8b43aea5b19994;p=mesa.git vbo: Remove now duplicate _vbo_update_inputs from dlist draw. At the current state, _vbo_update_inputs is called from the draw callback if vbo...recalculate_inputs is set. But that is now set of the _DrawVAO or its content or the vertex program mode is changed. So remove _vbo_update_inputs from the direct dlist draw path. Reviewed-by: Brian Paul Signed-off-by: Mathias Fröhlich --- diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index ed3b50434f1..096e43c8169 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -206,9 +206,6 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data) return; } - /* Finally update the inputs array */ - _vbo_update_inputs(ctx, &vbo->draw_arrays); - assert(ctx->NewState == 0); if (node->vertex_count > 0) {