From: Brian Paul Date: Wed, 31 Jan 2018 21:05:46 +0000 (-0700) Subject: vbo: use vbo local var for draw call in vbo_save_playback_vertex_list() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b0a2f38db9ec08b79362fb255097423ac5637eea;p=mesa.git vbo: use vbo local var for draw call in vbo_save_playback_vertex_list() Reviewed-by: Marek Olšák Reviewed-by: Mathias Fröhlich --- 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); } }