From d268a43b25f7655db385fd3664301810bdef0c14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Sun, 6 Sep 2020 22:09:51 +0200 Subject: 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. --- source/blender/draw/intern/draw_cache_inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/draw/intern/draw_cache_inline.h') 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. */ -- cgit v1.2.3