[Bf-blender-cvs] [943e4ec8f12] master: Fix unreported: Glitches on the wireframe of curves.

mano-wii noreply at git.blender.org
Fri Mar 1 20:21:55 CET 2019


Commit: 943e4ec8f12690c9c1f3aed9f9c70f38e06cc6d9
Author: mano-wii
Date:   Fri Mar 1 16:02:35 2019 -0300
Branches: master
https://developer.blender.org/rB943e4ec8f12690c9c1f3aed9f9c70f38e06cc6d9

Fix unreported: Glitches on the wireframe of curves.

===================================================================

M	source/blender/draw/intern/draw_cache_impl_displist.c

===================================================================

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)



More information about the Bf-blender-cvs mailing list