Cleanup: GPUVertBuf: Replace GPU_vertbuf_create by GPU_vertbuf_calloc

This is a simple cleanup to make naming consistent with the rest of the
module.
This commit is contained in:
2020-09-06 22:09:51 +02:00
parent 158cea83b5
commit d268a43b25
5 changed files with 8 additions and 6 deletions

View File

@@ -163,7 +163,7 @@ static void drw_volume_wireframe_cb(
GPU_vertbuf_attr_fill_stride(cache->face_wire.pos_nor_in_order, nor_id, 0, &packed_normal);
/* Create wiredata. */
GPUVertBuf *vbo_wiredata = GPU_vertbuf_create(GPU_USAGE_STATIC);
GPUVertBuf *vbo_wiredata = GPU_vertbuf_calloc();
DRW_vertbuf_create_wiredata(vbo_wiredata, totvert);
if (volume->display.wireframe_type == VOLUME_WIREFRAME_POINTS) {