From 841d1839e2d4a0d2b0cf4ffcba26280570922356 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 12 Jan 2018 09:48:17 -0700 Subject: [PATCH] vbo: removed unused ctx parameter for alloc_prim_store() Reviewed-by: Ian Romanick --- src/mesa/vbo/vbo_save_api.c | 7 +++---- 1 file 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); -- 2.30.2