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-28 09:49:30 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-06-28 09:49:30 +0300
commit8777b33699b2fc81bc503793599120d3dd86c9eb (patch)
treecf63da0e6810f1c5a2958e354768d7fd96da3eb1 /source/blender/gpu
parentd8d245917da69741e19bb486fe2112b9c5c1a55a (diff)
Fix missing blend mode in recent OpenGL refactor
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_state.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_state.c b/source/blender/gpu/intern/gpu_state.c
index 72d11c7c60e..008a01ba675 100644
--- a/source/blender/gpu/intern/gpu_state.c
+++ b/source/blender/gpu/intern/gpu_state.c
@@ -37,6 +37,8 @@ static GLenum gpu_get_gl_blendfunction(GPUBlendFunction blend)
return GL_SRC_ALPHA;
case GPU_ONE_MINUS_SRC_ALPHA:
return GL_ONE_MINUS_SRC_ALPHA;
+ case GPU_ZERO:
+ return GL_ZERO;
default:
BLI_assert(!"Unhandled blend mode");
return GL_ZERO;