diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 13:39:35 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2020-08-07 14:38:06 +0300 |
commit | c889d93c80c52603a501b6b76f6e251b7a6112d2 (patch) | |
tree | e39563837bc237f92b1ad5a9e429b41fe69a6e4c /source/blender/gpu/intern/gpu_viewport.c | |
parent | 326e137a8cfaac6587a83d4c61d2889832926827 (diff) |
Cleanup: GPU, Clang-Tidy else-after-return fixes
This addresses warnings from Clang-Tidy's `readability-else-after-return`
rule in the `source/blender/gpu` module.
No functional changes.
Diffstat (limited to 'source/blender/gpu/intern/gpu_viewport.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_viewport.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_viewport.c b/source/blender/gpu/intern/gpu_viewport.c index 81315ec1f92..ba938349761 100644 --- a/source/blender/gpu/intern/gpu_viewport.c +++ b/source/blender/gpu/intern/gpu_viewport.c @@ -912,9 +912,8 @@ GPUTexture *GPU_viewport_color_texture(GPUViewport *viewport, int view) if (viewport->active_view == view) { return dtxl->color; } - else { - return dtxl->color_stereo; - } + + return dtxl->color_stereo; } return NULL; |