[Mesa-dev] [PATCH 1/4] vbo: use vbo local var for draw call in vbo_save_playback_vertex_list()

Mathias Fröhlich Mathias.Froehlich at gmx.net
Thu Feb 1 18:35:24 UTC 2018


Hi Brian,

with the updated comment that Ilia found, also

Reviewed-by: Mathias Fröhlich <mathias.froehlich at web.de>

best

Mathias

> ---
>  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 906ed22..859c605 100644
> --- a/src/mesa/vbo/vbo_save_draw.c
> +++ b/src/mesa/vbo/vbo_save_draw.c
> @@ -282,13 +282,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);
>        }
>     }
>  
> 






More information about the mesa-dev mailing list