Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-07-08 14:14:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-07-08 14:14:49 +0300
commit9fb912518425e52e7b13c35dd79770c2715c8dd6 (patch)
tree615266a9b40809eeefa30def291bf95210ab417a /source/blender/gpu/intern/gpu_buffers.c
parent804205babe212972dd800c5a2f6d9ebfb64feefb (diff)
Cleanup: rename 'ct' to 'len' for gpu
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r--source/blender/gpu/intern/gpu_buffers.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c
index dfaa5cb5d72..1a4750652cc 100644
--- a/source/blender/gpu/intern/gpu_buffers.c
+++ b/source/blender/gpu/intern/gpu_buffers.c
@@ -126,7 +126,7 @@ static void gpu_material_diffuse_get(int UNUSED(nr), float diff[4])
/* Allocates a non-initialized buffer to be sent to GPU.
* Return is false it indicates that the memory map failed. */
-static bool gpu_pbvh_vert_buf_data_set(GPU_PBVH_Buffers *buffers, unsigned int vert_ct)
+static bool gpu_pbvh_vert_buf_data_set(GPU_PBVH_Buffers *buffers, unsigned int vert_len)
{
if (buffers->vert_buf == NULL) {
/* Initialize vertex buffer */
@@ -140,15 +140,15 @@ static bool gpu_pbvh_vert_buf_data_set(GPU_PBVH_Buffers *buffers, unsigned int v
}
#if 0
buffers->vert_buf = GWN_vertbuf_create_with_format_ex(&format, GWN_USAGE_DYNAMIC);
- GWN_vertbuf_data_alloc(buffers->vert_buf, vert_ct);
+ GWN_vertbuf_data_alloc(buffers->vert_buf, vert_len);
}
- else if (vert_ct != buffers->vert_buf->vertex_len) {
- GWN_vertbuf_data_resize(buffers->vert_buf, vert_ct);
+ else if (vert_len != buffers->vert_buf->vertex_len) {
+ GWN_vertbuf_data_resize(buffers->vert_buf, vert_len);
}
#else
buffers->vert_buf = GWN_vertbuf_create_with_format_ex(&format, GWN_USAGE_STATIC);
}
- GWN_vertbuf_data_alloc(buffers->vert_buf, vert_ct);
+ GWN_vertbuf_data_alloc(buffers->vert_buf, vert_len);
#endif
return buffers->vert_buf->data != NULL;
}