Cleanup: GPU: Move towards an explicit Blend state

This make use of the GLStateStack functions for:
- `GPU_blend()`
- `GPU_blend_set_func()`
- `GPU_blend_set_func_separate()`

The goal is to unify them using an explicit state setting.
This will remove the need to use obscure blend functions
This commit is contained in:
2020-08-16 14:47:13 +02:00
parent 2ae1c895a2
commit a1459b2f7a
7 changed files with 32 additions and 19 deletions

View File

@@ -370,7 +370,6 @@ static void draw_filled_lasso(wmGesture *gt)
MEM_freeN(pixel_buf);
GPU_blend(false);
GPU_blend_set_func(GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);
}
MEM_freeN(mcoords);