Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2019-03-01 22:02:35 +0300
committermano-wii <germano.costa@ig.com.br>2019-03-01 22:20:40 +0300
commit943e4ec8f12690c9c1f3aed9f9c70f38e06cc6d9 (patch)
tree4070edf43ad178f77edba26694055c10312a22f5 /source/blender/draw/intern/draw_cache_impl_displist.c
parent568fa11a0405af1dade948b8343c7be3eb5860ab (diff)
Fix unreported: Glitches on the wireframe of curves.
Diffstat (limited to 'source/blender/draw/intern/draw_cache_impl_displist.c')
-rw-r--r--source/blender/draw/intern/draw_cache_impl_displist.c4
1 files changed, 3 insertions, 1 deletions
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)