summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-01-12 09:56:42 -0700
committerBrian Paul <[email protected]>2018-01-17 11:17:56 -0700
commit8b06acf642b183f8203876925639c6d6e2d5fe01 (patch)
treeeaa57472fe5c879ae1440203a40c11ed5887e197 /src
parent4acc8a0de3b136882483b25add0b8b21ceff9bb5 (diff)
vbo: minor code simplification in _save_compile_vertex_list()
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_save_api.c9
1 files 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);