diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/vbo/vbo_save_api.c | 9 |
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); |