diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 02:32:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-22 12:48:17 +0300 |
commit | 14a49950ff11f43b7a5a73da545339b969de97f0 (patch) | |
tree | b935489e6d39db98ecac8784d327ab9c451c8d01 /source/blender/gpu/intern/gpu_element.c | |
parent | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (diff) |
Cleanup: style, use braces for gpu
Diffstat (limited to 'source/blender/gpu/intern/gpu_element.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_element.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_element.c b/source/blender/gpu/intern/gpu_element.c index 9fcc9821227..0b7f37af522 100644 --- a/source/blender/gpu/intern/gpu_element.c +++ b/source/blender/gpu/intern/gpu_element.c @@ -180,12 +180,15 @@ static uint index_range(const uint values[], uint value_len, uint *min_out, uint uint max_value = values[0]; for (uint i = 1; i < value_len; ++i) { const uint value = values[i]; - if (value == GPU_PRIM_RESTART) + if (value == GPU_PRIM_RESTART) { continue; - else if (value < min_value) + } + else if (value < min_value) { min_value = value; - else if (value > max_value) + } + else if (value > max_value) { max_value = value; + } } *min_out = min_value; *max_out = max_value; |