From 8b06acf642b183f8203876925639c6d6e2d5fe01 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jan 2018 09:56:42 -0700 Subject: [PATCH] vbo: minor code simplification in _save_compile_vertex_list() Reviewed-by: Ian Romanick --- src/mesa/vbo/vbo_save_api.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 84d8d1e0523..cb48cb8d1e1 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -501,10 +501,11 @@ _save_compile_vertex_list(struct gl_context *ctx) _glapi_set_dispatch(ctx->Exec); - vbo_loopback_vertex_list(ctx, - (const GLfloat *) ((const char *) save-> - vertex_store->buffer_map + - node->buffer_offset), + const GLfloat *buffer = (const GLfloat *) + ((const char *) save->vertex_store->buffer_map + + node->buffer_offset); + + vbo_loopback_vertex_list(ctx, buffer, node->attrsz, node->prims, node->prim_count, node->wrap_count, node->vertex_size); -- 2.30.2