diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-27 23:29:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-27 23:29:59 +0300 |
commit | 31f0c9182e80bcb7062f731d8451c0c59c87050e (patch) | |
tree | bda0df115179a87ef29a6e1564ee12aa78da8d95 /source/blender/gpu | |
parent | 609805eed3eb9da2e81772279c4a501f644ac1f8 (diff) |
Cleanup: style
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_state.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c index 1cd531fee30..72d11c7c60e 100644 --- a/source/blender/gpu/intern/gpu_state.c +++ b/source/blender/gpu/intern/gpu_state.c @@ -30,17 +30,16 @@ static GLenum gpu_get_gl_blendfunction(GPUBlendFunction blend) { - switch (blend) - { - case GPU_ONE: - return GL_ONE; - case GPU_SRC_ALPHA: - return GL_SRC_ALPHA; - case GPU_ONE_MINUS_SRC_ALPHA: - return GL_ONE_MINUS_SRC_ALPHA; - default: - BLI_assert(!"Unhandled blend mode"); - return GL_ZERO; + switch (blend) { + case GPU_ONE: + return GL_ONE; + case GPU_SRC_ALPHA: + return GL_SRC_ALPHA; + case GPU_ONE_MINUS_SRC_ALPHA: + return GL_ONE_MINUS_SRC_ALPHA; + default: + BLI_assert(!"Unhandled blend mode"); + return GL_ZERO; } } |