vbo: use vbo local var for draw call in vbo_save_playback_vertex_list()

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
This commit is contained in:
Brian Paul 2018-01-31 14:05:46 -07:00
parent 84c3641864
commit b0a2f38db9

View file

@ -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);
}
}