mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
84c3641864
commit
b0a2f38db9
1 changed files with 7 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue