diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/gpu/intern/gpu_init_exit.c | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/gpu/intern/gpu_init_exit.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_init_exit.c | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/source/blender/gpu/intern/gpu_init_exit.c b/source/blender/gpu/intern/gpu_init_exit.c index b1bdfccacff..310320673d0 100644 --- a/source/blender/gpu/intern/gpu_init_exit.c +++ b/source/blender/gpu/intern/gpu_init_exit.c @@ -23,7 +23,7 @@ #include "BLI_sys_types.h" #include "GPU_buffers.h" -#include "GPU_init_exit.h" /* interface */ +#include "GPU_init_exit.h" /* interface */ #include "GPU_immediate.h" #include "GPU_batch.h" #include "GPU_texture.h" @@ -41,51 +41,49 @@ static bool initialized = false; void GPU_init(void) { - /* can't avoid calling this multiple times, see wm_window_ghostwindow_add */ - if (initialized) - return; + /* can't avoid calling this multiple times, see wm_window_ghostwindow_add */ + if (initialized) + return; - initialized = true; + initialized = true; - gpu_extensions_init(); /* must come first */ + gpu_extensions_init(); /* must come first */ - gpu_codegen_init(); - gpu_framebuffer_module_init(); + gpu_codegen_init(); + gpu_framebuffer_module_init(); - if (G.debug & G_DEBUG_GPU) - gpu_debug_init(); + if (G.debug & G_DEBUG_GPU) + gpu_debug_init(); - gpu_batch_init(); + gpu_batch_init(); - if (!G.background) { - immInit(); - } + if (!G.background) { + immInit(); + } - GPU_pbvh_fix_linking(); + GPU_pbvh_fix_linking(); } - void GPU_exit(void) { - if (!G.background) { - immDestroy(); - } + if (!G.background) { + immDestroy(); + } - gpu_batch_exit(); + gpu_batch_exit(); - if (G.debug & G_DEBUG_GPU) - gpu_debug_exit(); + if (G.debug & G_DEBUG_GPU) + gpu_debug_exit(); - gpu_framebuffer_module_exit(); - gpu_codegen_exit(); + gpu_framebuffer_module_exit(); + gpu_codegen_exit(); - gpu_extensions_exit(); /* must come last */ + gpu_extensions_exit(); /* must come last */ - initialized = false; + initialized = false; } - bool GPU_is_initialized(void) { - return initialized; + return initialized; } |