[Bf-blender-cvs] [c2f6ca313e1] blender2.8: Draw Cache: fix probe vbo size

Clément Foucault noreply at git.blender.org
Sat Jun 10 13:46:07 CEST 2017


Commit: c2f6ca313e14b8ec97b8839965aac9ae45a3f45b
Author: Clément Foucault
Date:   Sat Jun 10 13:57:39 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBc2f6ca313e14b8ec97b8839965aac9ae45a3f45b

Draw Cache: fix probe vbo size

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

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

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

diff --git a/source/blender/draw/intern/draw_cache.c b/source/blender/draw/intern/draw_cache.c
index 946ac78b468..d7736789a72 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -1338,7 +1338,7 @@ Batch *DRW_cache_probe_get(void)
 		}
 
 		VertexBuffer *vbo = VertexBuffer_create_with_format(&format);
-		VertexBuffer_allocate_data(vbo, (CIRCLE_RESOL + 1) * 2 + 8);
+		VertexBuffer_allocate_data(vbo, CIRCLE_RESOL * 2 + 8);
 
 		VertexBuffer_set_attrib(vbo, attr_id.pos, v_idx++, v);
 		for (int a = 1; a < CIRCLE_RESOL; a++) {




More information about the Bf-blender-cvs mailing list