diff options
author | Brian Paul <[email protected]> | 2018-01-12 09:48:17 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-17 11:17:56 -0700 |
commit | 841d1839e2d4a0d2b0cf4ffcba26280570922356 (patch) | |
tree | 5a501c90cfaa855a858d4dcbdc5df603826c0711 /src/mesa | |
parent | 3442672df4d5c4b341bcc354affbd5c1d54e1589 (diff) |
vbo: removed unused ctx parameter for alloc_prim_store()
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/vbo/vbo_save_api.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 8312969fd3e..fefe420ea2e 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -294,11 +294,10 @@ vbo_save_unmap_vertex_store(struct gl_context *ctx, static struct vbo_save_primitive_store * -alloc_prim_store(struct gl_context *ctx) +alloc_prim_store(void) { struct vbo_save_primitive_store *store = CALLOC_STRUCT(vbo_save_primitive_store); - (void) ctx; store->used = 0; store->refcount = 1; return store; @@ -543,7 +542,7 @@ _save_compile_vertex_list(struct gl_context *ctx) if (save->prim_store->used > VBO_SAVE_PRIM_SIZE - 6) { save->prim_store->refcount--; assert(save->prim_store->refcount != 0); - save->prim_store = alloc_prim_store(ctx); + save->prim_store = alloc_prim_store(); } /* Reset our structures for the next run of vertices: @@ -1568,7 +1567,7 @@ vbo_save_NewList(struct gl_context *ctx, GLuint list, GLenum mode) (void) mode; if (!save->prim_store) - save->prim_store = alloc_prim_store(ctx); + save->prim_store = alloc_prim_store(); if (!save->vertex_store) save->vertex_store = alloc_vertex_store(ctx); |