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_inline.h | |
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_inline.h')
-rw-r--r-- | source/blender/draw/intern/draw_cache_inline.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/intern/draw_cache_inline.h b/source/blender/draw/intern/draw_cache_inline.h index 120e547bbe2..ebe97b4e7c4 100644 --- a/source/blender/draw/intern/draw_cache_inline.h +++ b/source/blender/draw/intern/draw_cache_inline.h @@ -86,7 +86,7 @@ BLI_INLINE bool DRW_ibo_requested(GPUIndexBuf *ibo) BLI_INLINE void DRW_vbo_request(GPUBatch *batch, GPUVertBuf **vbo) { if (*vbo == NULL) { - *vbo = GPU_vertbuf_create(GPU_USAGE_STATIC); + *vbo = GPU_vertbuf_calloc(); } if (batch != NULL) { /* HACK we set vbos that may not yet be valid. */ |