Commit: 8777b33699b2fc81bc503793599120d3dd86c9eb
Author: Campbell Barton
Date:   Thu Jun 28 08:49:30 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB8777b33699b2fc81bc503793599120d3dd86c9eb

Fix missing blend mode in recent OpenGL refactor

===================================================================

M       source/blender/gpu/intern/gpu_state.c

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to