diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-24 23:10:13 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-24 23:12:13 +0300 |
commit | a4fe338dd8c6822d27b8858bae5fa9a54972719c (patch) | |
tree | 9a6b671702a7cf41e98efef72e78c7cc54974111 /source/blender/draw/intern/draw_instance_data.c | |
parent | b1f3a86d999b6742d783de5a11d7de0c54cf5891 (diff) |
Cleanup: add missing braces to draw manager
Diffstat (limited to 'source/blender/draw/intern/draw_instance_data.c')
-rw-r--r-- | source/blender/draw/intern/draw_instance_data.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_instance_data.c b/source/blender/draw/intern/draw_instance_data.c index 0fc4582ab44..be077126d10 100644 --- a/source/blender/draw/intern/draw_instance_data.c +++ b/source/blender/draw/intern/draw_instance_data.c @@ -150,8 +150,9 @@ void DRW_batching_buffer_request( } int new_id = 0; /* Find insertion point. */ for (; new_id < chunk->alloc_size; ++new_id) { - if (chunk->bbufs[new_id].format == NULL) + if (chunk->bbufs[new_id].format == NULL) { break; + } } /* If there is no batch left. Allocate more. */ if (new_id == chunk->alloc_size) { @@ -191,8 +192,9 @@ void DRW_instancing_buffer_request( } int new_id = 0; /* Find insertion point. */ for (; new_id < chunk->alloc_size; ++new_id) { - if (chunk->ibufs[new_id].format == NULL) + if (chunk->ibufs[new_id].format == NULL) { break; + } } /* If there is no batch left. Allocate more. */ if (new_id == chunk->alloc_size) { |