[Mesa-dev] [PATCH] mesa: make _mesa_save_vtxfmt_init() static
Brian Paul
brianp at vmware.com
Tue Apr 23 12:38:11 PDT 2013
It's called from nowhere else.
---
src/mesa/main/dlist.c | 6 +++---
src/mesa/main/dlist.h | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 33aeffc..fcccab4 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -9547,8 +9547,8 @@ mesa_print_display_list(GLuint list)
/***** Initialization *****/
/**********************************************************************/
-void
-_mesa_save_vtxfmt_init(GLvertexformat * vfmt)
+static void
+save_vtxfmt_init(GLvertexformat * vfmt)
{
_MESA_INIT_ARRAYELT_VTXFMT(vfmt, _ae_);
@@ -9673,7 +9673,7 @@ _mesa_init_display_list(struct gl_context *ctx)
/* Display List group */
ctx->List.ListBase = 0;
- _mesa_save_vtxfmt_init(&ctx->ListState.ListVtxfmt);
+ save_vtxfmt_init(&ctx->ListState.ListVtxfmt);
}
diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h
index 2722e06..f2192a7 100644
--- a/src/mesa/main/dlist.h
+++ b/src/mesa/main/dlist.h
@@ -71,8 +71,6 @@ extern GLint _mesa_dlist_alloc_opcode( struct gl_context *ctx, GLuint sz,
extern void _mesa_delete_list(struct gl_context *ctx, struct gl_display_list *dlist);
-extern void _mesa_save_vtxfmt_init( GLvertexformat *vfmt );
-
extern void _mesa_initialize_save_table(const struct gl_context *);
extern void _mesa_install_dlist_vtxfmt(struct _glapi_table *disp,
--
1.7.3.4
More information about the mesa-dev
mailing list