diff options
author | Brian Paul <[email protected]> | 2018-01-18 14:50:08 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-24 10:12:49 -0700 |
commit | a83f7e119cac2020100035d426927629ab666257 (patch) | |
tree | 0d0e794e0fb95da4ad24008ed60760b9bc81137b | |
parent | 718f4251c5cce3106e89e5f97bdde5e1a5f232fe (diff) |
vbo: remove unused vbo_any_varyings_in_vbos() function
Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r-- | src/mesa/vbo/vbo.h | 3 | ||||
-rw-r--r-- | src/mesa/vbo/vbo_rebase.c | 10 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index ec2ac0e8bf5..0007029996c 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -153,10 +153,7 @@ void vbo_split_prims( struct gl_context *ctx, const struct split_limits *limits ); -/* Helpers for dealing translating away non-zero min_index. - */ GLboolean vbo_all_varyings_in_vbos( const struct gl_vertex_array *arrays[] ); -GLboolean vbo_any_varyings_in_vbos( const struct gl_vertex_array *arrays[] ); void vbo_rebase_prims( struct gl_context *ctx, const struct gl_vertex_array *arrays[], diff --git a/src/mesa/vbo/vbo_rebase.c b/src/mesa/vbo/vbo_rebase.c index 9f5dc4678f8..a9d8ff93e93 100644 --- a/src/mesa/vbo/vbo_rebase.c +++ b/src/mesa/vbo/vbo_rebase.c @@ -91,16 +91,6 @@ GLboolean vbo_all_varyings_in_vbos( const struct gl_vertex_array *arrays[] ) return GL_TRUE; } -GLboolean vbo_any_varyings_in_vbos( const struct gl_vertex_array *arrays[] ) -{ - GLuint i; - - for (i = 0; i < VERT_ATTRIB_MAX; i++) - if (arrays[i]->BufferObj->Name != 0) - return GL_TRUE; - - return GL_FALSE; -} /* Adjust primitives, indices and vertex definitions so that min_index * becomes zero. There are lots of reasons for wanting to do this, eg: |