diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-30 17:02:42 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-10-01 17:10:38 +0300 |
commit | 46285e36e97498cca054b376de8ccaf1e53e8535 (patch) | |
tree | 08c73c2d74c9d850290ed118fd47084bd97e3504 /source/blender/gpu | |
parent | 1524f414dbd5ac536019223c0ef54b3c8676e465 (diff) |
Cleanup: compiler warning
Diffstat (limited to 'source/blender/gpu')
-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 48f6ae87615..ed606ccb8c6 100644 --- a/source/blender/gpu/intern/gpu_buffers.c +++ b/source/blender/gpu/intern/gpu_buffers.c @@ -249,7 +249,7 @@ void GPU_pbvh_mesh_buffers_update(GPU_PBVH_Buffers *buffers, else { /* calculate normal for each polygon only once */ uint mpoly_prev = UINT_MAX; - short no[3]; + short no[3] = {0, 0, 0}; for (uint i = 0; i < buffers->face_indices_len; i++) { const MLoopTri *lt = &buffers->looptri[buffers->face_indices[i]]; |