diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 23:09:51 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2020-09-06 23:13:06 +0300 |
commit | d268a43b25f7655db385fd3664301810bdef0c14 (patch) | |
tree | 68d8688945dba208156fd006309819b200321a84 /source/blender/draw/intern/draw_cache_impl_volume.c | |
parent | 158cea83b5bbe4bd57f4ca9cd4f6fe9a0624e00b (diff) |
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.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_volume.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache_impl_volume.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_impl_volume.c b/source/blender/draw/intern/draw_cache_impl_volume.c index 3b9c127abc3..10b9623175c 100644 --- a/source/blender/draw/intern/draw_cache_impl_volume.c +++ b/source/blender/draw/intern/draw_cache_impl_volume.c @@ -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) { |