diff --git a/cogl/cogl-indices-private.h b/cogl/cogl-indices-private.h index e02561915..e505212cf 100644 --- a/cogl/cogl-indices-private.h +++ b/cogl/cogl-indices-private.h @@ -44,9 +44,6 @@ struct _CoglIndices int immutable_ref; }; -CoglIndexArray * -_cogl_indices_get_array (CoglIndices *indices); - CoglIndices * _cogl_indices_immutable_ref (CoglIndices *indices); diff --git a/cogl/cogl-indices.c b/cogl/cogl-indices.c index e4e7c2caa..68c7e458e 100644 --- a/cogl/cogl-indices.c +++ b/cogl/cogl-indices.c @@ -96,7 +96,7 @@ cogl_indices_new (CoglIndicesType type, } CoglIndexArray * -_cogl_indices_get_array (CoglIndices *indices) +cogl_indices_get_array (CoglIndices *indices) { return indices->array; } diff --git a/cogl/cogl-indices.h b/cogl/cogl-indices.h index 9fc4dc907..ec5ae7ca6 100644 --- a/cogl/cogl-indices.h +++ b/cogl/cogl-indices.h @@ -55,6 +55,9 @@ cogl_indices_new_for_array (CoglIndicesType type, CoglIndexArray *array, gsize offset); +CoglIndexArray * +cogl_indices_get_array (CoglIndices *indices); + CoglIndicesType cogl_indices_get_type (CoglIndices *indices); diff --git a/cogl/cogl-vertex-attribute.c b/cogl/cogl-vertex-attribute.c index 199354b9c..cc4ad7942 100644 --- a/cogl/cogl-vertex-attribute.c +++ b/cogl/cogl-vertex-attribute.c @@ -770,7 +770,7 @@ _cogl_draw_indexed_vertex_attributes_array_real (CoglVerticesMode mode, _COGL_GET_CONTEXT (ctx, NO_RETVAL); - buffer = COGL_BUFFER (_cogl_indices_get_array (indices)); + buffer = COGL_BUFFER (cogl_indices_get_array (indices)); base = _cogl_buffer_bind (buffer, COGL_BUFFER_BIND_TARGET_INDEX_ARRAY); array_offset = cogl_indices_get_offset (indices); index_size = sizeof_index_type (cogl_indices_get_type (indices));