diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-12-12 18:53:41 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-12-14 18:17:29 +0300 |
commit | 49287b34a2e296f826254e3b6397d2a56845443e (patch) | |
tree | e6d914dc6870c63a07537882794067d73c836c88 /source/blender/gpu/intern/gpu_buffers.c | |
parent | f85b05111fa4b96228a4a3969945c80fbb67f499 (diff) |
GPUBuffers: Fix uninitialized memory use causing undefined conditional jump
Diffstat (limited to 'source/blender/gpu/intern/gpu_buffers.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_buffers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_buffers.c b/source/blender/gpu/intern/gpu_buffers.c index 38edcbe7f71..deb10213976 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -341,7 +341,7 @@ static void gpu_pbvh_grid_fill_fast_buffer(GPU_PBVH_Buffers *buffers, int totgri GPU_indexbuf_init_ex(&elb, GPU_PRIM_TRI_STRIP, 5 * totgrid, INT_MAX, true); uint vbo_index_offset = 0; for (int i = 0; i < totgrid; i++) { - uint grid_indices[4]; + uint grid_indices[4] = {0, 0, 0, 0}; for (int j = 0; j < gridsize - 1; j++) { for (int k = 0; k < gridsize - 1; k++) { const bool is_row_start = (k == 0); |