diff options
author | Dave Airlie <[email protected]> | 2012-02-09 19:44:56 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-02-28 10:32:26 +0000 |
commit | fd4a3d463c103192311aacc04f5f871f4a1035df (patch) | |
tree | 0acd5cda659dcc41177c2a70133706e3551e28ef /src/mesa/vbo/vbo_exec_array.c | |
parent | 4ffc8b9ae46dcdb01adedde3ebb60f0c6a22138b (diff) |
mesa/vbo: inline vbo_sizeof_ib_type.
Can't see any reason this wouldn't be better off as an inline.
Reviewed-by: Brian Paul <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/mesa/vbo/vbo_exec_array.c')
-rw-r--r-- | src/mesa/vbo/vbo_exec_array.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c index 06e36a677eb..b0a4261e764 100644 --- a/src/mesa/vbo/vbo_exec_array.c +++ b/src/mesa/vbo/vbo_exec_array.c @@ -75,22 +75,6 @@ vbo_check_buffers_are_unmapped(struct gl_context *ctx) assert(!_mesa_bufferobj_mapped(exec->vtx.bufferobj)); } -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; - } -} /** |