summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2018-01-12 09:12:35 -0700
committerBrian Paul <[email protected]>2018-01-17 11:17:56 -0700
commit213bef62c31ed365253a1f3f6714290b8013051a (patch)
treea304c11b91ee0818146ab5ae96a132355a51461c /src
parent1e9ca36058693c304dc96a42c72451d4c6f38943 (diff)
vbo: rename vbo_save_primitive_store::buffer to prims
A little easier to understand. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/vbo/vbo_save.h2
-rw-r--r--src/mesa/vbo/vbo_save_api.c2
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);