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:
Diffstat (limited to 'source/blender/gpu/intern/gpu_state.cc')
-rw-r--r--source/blender/gpu/intern/gpu_state.cc25
1 files changed, 0 insertions, 25 deletions
diff --git a/source/blender/gpu/intern/gpu_state.cc b/source/blender/gpu/intern/gpu_state.cc
index be4450193f5..c670e034585 100644
--- a/source/blender/gpu/intern/gpu_state.cc
+++ b/source/blender/gpu/intern/gpu_state.cc
@@ -40,12 +40,6 @@
using namespace blender::gpu;
-// /* This should replace GPU_blend, GPU_blend_set_func and GPU_blend_set_func_separate. */
-// void GPU_blend_set(eGPUBlend blend)
-// {
-// GLStateStack::set_blend(blend);
-// }
-
void GPU_blend(bool enable)
{
if (enable) {
@@ -56,25 +50,6 @@ void GPU_blend(bool enable)
}
}
-void GPU_blend_set_func(eGPUBlendFunction sfactor, eGPUBlendFunction dfactor)
-{
- if (sfactor == GPU_ONE && dfactor == GPU_ONE) {
- GLStateStack::set_blend(GPU_BLEND_ADDITIVE);
- }
- else if (sfactor == GPU_ONE && dfactor == GPU_ONE_MINUS_SRC_ALPHA) {
- GLStateStack::set_blend(GPU_BLEND_ALPHA_PREMULT);
- }
- else if (sfactor == GPU_SRC_ALPHA && dfactor == GPU_ONE_MINUS_SRC_ALPHA) {
- GLStateStack::set_blend(GPU_BLEND_ALPHA);
- }
- else if (sfactor == GPU_DST_COLOR && dfactor == GPU_ZERO) {
- GLStateStack::set_blend(GPU_BLEND_MULTIPLY);
- }
- else {
- BLI_assert(0);
- }
-}
-
void GPU_blend_set_func_separate(eGPUBlend blend)
{
GLStateStack::set_blend(blend);