diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 04:54:39 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 18:17:29 +0300 |
commit | f37e45c26b4a528e3f023152924199aa26424a12 (patch) | |
tree | a78beb9adc4b6e8a9598e3a859e5d0665c63a913 /source/blender/draw/intern/draw_cache.c | |
parent | 531e5ad49a037637c323ef79d872f3d182f589a6 (diff) |
DRW Batch Cache: Fix hack being a bit too much hacky
Diffstat (limited to 'source/blender/draw/intern/draw_cache.c')
-rw-r--r-- | source/blender/draw/intern/draw_cache.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c index dbd05baa144..9186191cea5 100644 --- a/source/blender/draw/intern/draw_cache.c +++ b/source/blender/draw/intern/draw_cache.c @@ -3718,8 +3718,10 @@ void DRW_vbo_request(GPUBatch *batch, GPUVertBuf **vbo) } else { /* HACK: bypass assert */ + int vbo_vert_len = (*vbo)->vertex_len; (*vbo)->vertex_len = batch->verts[0]->vertex_len; GPU_batch_vertbuf_add(batch, *vbo); + (*vbo)->vertex_len = vbo_vert_len; } } |