diff options
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/GPU_state.h | 2 | ||||
-rw-r--r-- | source/blender/gpu/intern/gpu_state.cc | 12 |
2 files changed, 2 insertions, 12 deletions
diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 94dd2f18927..089edb860ef 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -106,7 +106,7 @@ typedef enum eGPUProvokingVertex { void GPU_state_init(void); void GPU_blend(bool enable); -void GPU_blend_set_func_separate(eGPUBlend blend); +void GPU_blend(eGPUBlend blend); void GPU_face_culling(eGPUFaceCullTest culling); void GPU_front_facing(bool invert); void GPU_provoking_vertex(eGPUProvokingVertex vert); diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc index c670e034585..4c3b2cc119e 100644 --- a/source/blender/gpu/intern/gpu_state.cc +++ b/source/blender/gpu/intern/gpu_state.cc @@ -40,17 +40,7 @@ using namespace blender::gpu; -void GPU_blend(bool enable) -{ - if (enable) { - GLStateStack::set_blend(GPU_BLEND_ALPHA); - } - else { - GLStateStack::set_blend(GPU_BLEND_NONE); - } -} - -void GPU_blend_set_func_separate(eGPUBlend blend) +void GPU_blend(eGPUBlend blend) { GLStateStack::set_blend(blend); } |