From 943e4ec8f12690c9c1f3aed9f9c70f38e06cc6d9 Mon Sep 17 00:00:00 2001 From: mano-wii Date: Fri, 1 Mar 2019 16:02:35 -0300 Subject: Fix unreported: Glitches on the wireframe of curves. --- source/blender/draw/intern/draw_cache_impl_displist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source/blender/draw') diff --git a/source/blender/draw/intern/draw_cache_impl_displist.c b/source/blender/draw/intern/draw_cache_impl_displist.c index c9952928755..72b6991417e 100644 --- a/source/blender/draw/intern/draw_cache_impl_displist.c +++ b/source/blender/draw/intern/draw_cache_impl_displist.c @@ -216,7 +216,9 @@ void DRW_displist_vertbuf_create_wiredata(ListBase *lb, GPUVertBuf *vbo) GPU_vertbuf_init_with_format(vbo, &format); GPU_vertbuf_data_alloc(vbo, vbo_len_used); - memset(vbo->data, 0xFF, (size_t)(vbo_len_used * format.stride)); + + BLI_assert(vbo->format.stride == 1); + memset(vbo->data, 0xFF, (size_t)vbo_len_used); } void DRW_displist_indexbuf_create_triangles_in_order(ListBase *lb, GPUIndexBuf *ibo) -- cgit v1.2.3