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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-28 14:46:30 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-06-28 14:46:30 +0300
commit9b050b736baea22547b6c6baaab37bba3356e42b (patch)
tree50aecfc5e3a3577d313fc768c7454a0bea3f172c /source/blender/gpu
parent89e0d9848a0660c81e57f1e5e9778a2b920bd54a (diff)
Fix assert to due missing GPU blend mode.
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 008a01ba675..0f754e37b92 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_DST_COLOR:
+ return GL_DST_COLOR;
case GPU_ZERO:
return GL_ZERO;
default: