From 213bef62c31ed365253a1f3f6714290b8013051a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jan 2018 09:12:35 -0700 Subject: [PATCH] vbo: rename vbo_save_primitive_store::buffer to prims A little easier to understand. Reviewed-by: Ian Romanick --- src/mesa/vbo/vbo_save.h | 2 +- src/mesa/vbo/vbo_save_api.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index 2eec87a6370..8240261f02c 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -114,7 +114,7 @@ struct vbo_save_vertex_store { }; struct vbo_save_primitive_store { - struct _mesa_prim buffer[VBO_SAVE_PRIM_SIZE]; + struct _mesa_prim prims[VBO_SAVE_PRIM_SIZE]; GLuint used; GLuint refcount; }; diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index aab5f549d72..ae5ee03a265 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -310,7 +310,7 @@ _save_reset_counters(struct gl_context *ctx) { struct vbo_save_context *save = &vbo_context(ctx)->save; - save->prim = save->prim_store->buffer + save->prim_store->used; + save->prim = save->prim_store->prims + save->prim_store->used; save->buffer = save->vertex_store->buffer + save->vertex_store->used; assert(save->buffer == save->buffer_ptr); -- 2.30.2