Mesa (master): vbo: make vbo_reset_attr() static
Brian Paul
brianp at kemper.freedesktop.org
Thu Oct 20 15:49:49 UTC 2016
Module: Mesa
Branch: master
Commit: 7693bcde2802f2b7772eaf35506cabaae62cbe45
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7693bcde2802f2b7772eaf35506cabaae62cbe45
Author: Brian Paul <brianp at vmware.com>
Date: Thu Oct 13 14:20:25 2016 -0600
vbo: make vbo_reset_attr() static
Not called from any other file.
Reviewed-by: Charmaine Lee <charmainel at vmware.com>
---
src/mesa/vbo/vbo_exec.h | 2 --
src/mesa/vbo/vbo_exec_api.c | 6 +++++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h
index 4f11f17..b150883 100644
--- a/src/mesa/vbo/vbo_exec.h
+++ b/src/mesa/vbo/vbo_exec.h
@@ -152,8 +152,6 @@ void vbo_exec_invalidate_state( struct gl_context *ctx, GLbitfield new_state );
/* Internal functions:
*/
-void vbo_reset_attr(struct vbo_exec_context *exec, GLuint attr);
-
void vbo_exec_vtx_init( struct vbo_exec_context *exec );
void vbo_exec_vtx_destroy( struct vbo_exec_context *exec );
diff --git a/src/mesa/vbo/vbo_exec_api.c b/src/mesa/vbo/vbo_exec_api.c
index 4c8b927..6df8d88 100644
--- a/src/mesa/vbo/vbo_exec_api.c
+++ b/src/mesa/vbo/vbo_exec_api.c
@@ -1275,7 +1275,11 @@ void vbo_exec_FlushVertices( struct gl_context *ctx, GLuint flags )
#endif
}
-void vbo_reset_attr(struct vbo_exec_context *exec, GLuint attr)
+/**
+ * Reset the vertex attribute by setting its size to zero.
+ */
+static void
+vbo_reset_attr(struct vbo_exec_context *exec, GLuint attr)
{
exec->vtx.attrsz[attr] = 0;
exec->vtx.attrtype[attr] = GL_FLOAT;
More information about the mesa-commit
mailing list