diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_uniformbuffer.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_uniformbuffer.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/gpu/intern/gpu_uniformbuffer.cc b/source/blender/gpu/intern/gpu_uniformbuffer.cc index 846ab6c8560..f0724ce7c9a 100644 --- a/source/blender/gpu/intern/gpu_uniformbuffer.cc +++ b/source/blender/gpu/intern/gpu_uniformbuffer.cc @@ -132,7 +132,7 @@ static void gpu_uniformbuffer_inputs_sort(ListBase *inputs) BLI_assert(!"mat3 not supported in UBO"); continue; } - else if (input->type > MAX_UBO_GPU_TYPE) { + if (input->type > MAX_UBO_GPU_TYPE) { BLI_assert(!"GPU type not supported in UBO"); continue; } @@ -140,10 +140,9 @@ static void gpu_uniformbuffer_inputs_sort(ListBase *inputs) if (input->type == cur_type) { continue; } - else { - inputs_lookup[input->type] = link; - cur_type = input->type; - } + + inputs_lookup[input->type] = link; + cur_type = input->type; } /* If there is no GPU_VEC3 there is no need for alignment. */ |