diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-21 03:28:41 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-21 03:28:41 +0300 |
commit | dd3f5186260eddc2c115b560bb832baff0f108ae (patch) | |
tree | 6979a22db4beda454ba4ff28fa65b1de5c681f21 /source/blender/gpu | |
parent | ff10ba8c26a9e4ec571da4782312790024bcfb0b (diff) |
Cleanup: rename GPU function to set buffer length
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_vertex_buffer.h | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_vertex_buffer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/gpu/GPU_vertex_buffer.h b/source/blender/gpu/GPU_vertex_buffer.h index db1309bcede..cc508de2f00 100644 --- a/source/blender/gpu/GPU_vertex_buffer.h +++ b/source/blender/gpu/GPU_vertex_buffer.h @@ -77,7 +77,7 @@ void GPU_vertbuf_init_with_format_ex(GPUVertBuf *, const GPUVertFormat *, GPUUsa uint GPU_vertbuf_size_get(const GPUVertBuf *); void GPU_vertbuf_data_alloc(GPUVertBuf *, uint v_len); void GPU_vertbuf_data_resize(GPUVertBuf *, uint v_len); -void GPU_vertbuf_vertex_count_set(GPUVertBuf *, uint v_len); +void GPU_vertbuf_data_len_set(GPUVertBuf *, uint v_len); /* The most important set_attrib variant is the untyped one. Get it right first. */ /* It takes a void* so the app developer is responsible for matching their app data types */ diff --git a/source/blender/gpu/intern/gpu_vertex_buffer.c b/source/blender/gpu/intern/gpu_vertex_buffer.c index a5c560fb17b..cf6ff1769ce 100644 --- a/source/blender/gpu/intern/gpu_vertex_buffer.c +++ b/source/blender/gpu/intern/gpu_vertex_buffer.c @@ -152,7 +152,7 @@ void GPU_vertbuf_data_resize(GPUVertBuf *verts, uint v_len) /* Set vertex count but does not change allocation. * Only this many verts will be uploaded to the GPU and rendered. * This is useful for streaming data. */ -void GPU_vertbuf_vertex_count_set(GPUVertBuf *verts, uint v_len) +void GPU_vertbuf_data_len_set(GPUVertBuf *verts, uint v_len) { #if TRUST_NO_ONE assert(verts->data != NULL); /* only for dynamic data */ |