diff options
author | Brian Paul <[email protected]> | 2018-01-18 13:28:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2018-01-24 10:12:49 -0700 |
commit | 3bbf8d9042c93d410666c94e078f852cccc330ea (patch) | |
tree | 0ec26a9088571248bb8ed104211af9bd2a176d33 /src/mesa/vbo/vbo.h | |
parent | a152cb7492b6ff2bc56f8c82879d703c8b99a880 (diff) |
vbo: move vbo_sizeof_ib_type() into vbo_exec_array.c
It's only used in this one file.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo.h')
-rw-r--r-- | src/mesa/vbo/vbo.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mesa/vbo/vbo.h b/src/mesa/vbo/vbo.h index c1c3e0ea84c..7fc7c550857 100644 --- a/src/mesa/vbo/vbo.h +++ b/src/mesa/vbo/vbo.h @@ -162,22 +162,6 @@ void vbo_rebase_prims( struct gl_context *ctx, GLuint max_index, vbo_draw_func draw ); -static inline int -vbo_sizeof_ib_type(GLenum type) -{ - switch (type) { - case GL_UNSIGNED_INT: - return sizeof(GLuint); - case GL_UNSIGNED_SHORT: - return sizeof(GLushort); - case GL_UNSIGNED_BYTE: - return sizeof(GLubyte); - default: - assert(!"unsupported index data type"); - /* In case assert is turned off */ - return 0; - } -} void vbo_delete_minmax_cache(struct gl_buffer_object *bufferObj); |