vbo: minor code simplification in _save_compile_vertex_list()

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
This commit is contained in:
Brian Paul 2018-01-12 09:56:42 -07:00
parent 4acc8a0de3
commit 8b06acf642
1 changed files with 5 additions and 4 deletions

View File

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