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_init_exit.c | |
parent | 620b960d3d8cfd90b9f0df6ba3671c33eccb8309 (diff) |
Cleanup: style, use braces for gpu
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index 310320673d0..322ac3be8e2 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -42,8 +42,9 @@ static bool initialized = false; void GPU_init(void) { /* can't avoid calling this multiple times, see wm_window_ghostwindow_add */ - if (initialized) + if (initialized) { return; + } initialized = true; @@ -52,8 +53,9 @@ void GPU_init(void) gpu_codegen_init(); gpu_framebuffer_module_init(); - if (G.debug & G_DEBUG_GPU) + if (G.debug & G_DEBUG_GPU) { gpu_debug_init(); + } gpu_batch_init(); @@ -72,8 +74,9 @@ void GPU_exit(void) gpu_batch_exit(); - if (G.debug & G_DEBUG_GPU) + if (G.debug & G_DEBUG_GPU) { gpu_debug_exit(); + } gpu_framebuffer_module_exit(); gpu_codegen_exit(); |