From: Brian Paul Date: Fri, 12 Jan 2018 16:56:42 +0000 (-0700) Subject: vbo: minor code simplification in _save_compile_vertex_list() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b06acf642b183f8203876925639c6d6e2d5fe01;p=mesa.git vbo: minor code simplification in _save_compile_vertex_list() Reviewed-by: Ian Romanick --- 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);