Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-06-27 23:29:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-27 23:29:59 +0300
commit31f0c9182e80bcb7062f731d8451c0c59c87050e (patch)
treebda0df115179a87ef29a6e1564ee12aa78da8d95 /source/blender/gpu
parent609805eed3eb9da2e81772279c4a501f644ac1f8 (diff)
Cleanup: style
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_state.c21
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;
}
}