From: Brian Paul Date: Fri, 12 Jan 2018 16:12:35 +0000 (-0700) Subject: vbo: rename vbo_save_primitive_store::buffer to prims X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=213bef62c31ed365253a1f3f6714290b8013051a;p=mesa.git vbo: rename vbo_save_primitive_store::buffer to prims A little easier to understand. Reviewed-by: Ian Romanick --- 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);