From b0a2f38db9ec08b79362fb255097423ac5637eea Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 31 Jan 2018 14:05:46 -0700 Subject: [PATCH] vbo: use vbo local var for draw call in vbo_save_playback_vertex_list() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Reviewed-by: Mathias Fröhlich --- src/mesa/vbo/vbo_save_draw.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/vbo/vbo_save_draw.c b/src/mesa/vbo/vbo_save_draw.c index fd0ccc1230a..cf824c66b0c 100644 --- a/src/mesa/vbo/vbo_save_draw.c +++ b/src/mesa/vbo/vbo_save_draw.c @@ -332,13 +332,13 @@ vbo_save_playback_vertex_list(struct gl_context *ctx, void *data) if (node->vertex_count > 0) { GLuint min_index = node->start_vertex; GLuint max_index = min_index + node->vertex_count - 1; - vbo_context(ctx)->draw_prims(ctx, - node->prims, - node->prim_count, - NULL, - GL_TRUE, - min_index, max_index, - NULL, 0, NULL); + vbo->draw_prims(ctx, + node->prims, + node->prim_count, + NULL, + GL_TRUE, + min_index, max_index, + NULL, 0, NULL); } } -- 2.30.2