[Bf-blender-cvs] [7d014bca915] blender2.8: DRW: Fix vertex buffer too large.
Clément Foucault
noreply at git.blender.org
Thu Jul 27 14:59:19 CEST 2017
Commit: 7d014bca9156ebc2d08b7c041a109d28df50cdec
Author: Clément Foucault
Date: Thu Jul 27 11:23:16 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB7d014bca9156ebc2d08b7c041a109d28df50cdec
DRW: Fix vertex buffer too large.
===================================================================
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 c0338de3d54..0472feb8352 100644
--- a/source/blender/draw/intern/draw_cache.c
+++ b/source/blender/draw/intern/draw_cache.c
@@ -1404,7 +1404,7 @@ Gwn_Batch *DRW_cache_lightprobe_grid_get(void)
}
Gwn_VertBuf *vbo = GWN_vertbuf_create_with_format(&format);
- GWN_vertbuf_data_alloc(vbo, (6 * 3 + 3) * 2);
+ GWN_vertbuf_data_alloc(vbo, (6 * 2 + 3) * 2);
for (int i = 0; i < 6; ++i) {
float tmp_v1[3], tmp_v2[3], tmp_tr[3];
More information about the Bf-blender-cvs
mailing list