vbo: rename vbo_save_primitive_store::buffer to prims
authorBrian Paul <brianp@vmware.com>
Fri, 12 Jan 2018 16:12:35 +0000 (09:12 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 17 Jan 2018 18:17:56 +0000 (11:17 -0700)
A little easier to understand.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/vbo/vbo_save.h
src/mesa/vbo/vbo_save_api.c

index 2eec87a6370b983d7592177184f5ca86a1f9b755..8240261f02c65fde30b2229023842ddd6eed4e71 100644 (file)
@@ -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;
 };
index aab5f549d72813c72af47f12a8d408877e0d7b39..ae5ee03a26570f286012ae2f0ffe198b6def1541 100644 (file)
@@ -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);