From 070072ad43bb41624d271f10697ea21a776b1ec1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 2 Apr 2017 19:07:49 +0200 Subject: mesa: replace _mesa_index_buffer::type with index_size This avoids repeated translations of the enum. Reviewed-by: Ilia Mirkin Reviewed-by: Kenneth Graunke --- src/mesa/main/varray.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/varray.h') diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h index 92165710d8e..d274ec55fe7 100644 --- a/src/mesa/main/varray.h +++ b/src/mesa/main/varray.h @@ -312,7 +312,8 @@ extern void GLAPIENTRY _mesa_VertexAttribDivisor(GLuint index, GLuint divisor); extern unsigned -_mesa_primitive_restart_index(const struct gl_context *ctx, GLenum ib_type); +_mesa_primitive_restart_index(const struct gl_context *ctx, + unsigned index_size); extern void GLAPIENTRY _mesa_BindVertexBuffer(GLuint bindingIndex, GLuint buffer, GLintptr offset, -- cgit v1.2.3