Cleanup: GPU: Replace glBlendFunc by GPU equivalent

This commit is contained in:
2020-07-16 18:08:21 +02:00
parent 3d536f69f6
commit acad0d75b1
6 changed files with 11 additions and 9 deletions

View File

@@ -355,7 +355,7 @@ static void draw_filled_lasso(wmGesture *gt)
/* Additive Blending */
GPU_blend(true);
glBlendFunc(GL_ONE, GL_ONE);
GPU_blend_set_func(GPU_ONE, GPU_ONE);
GLint unpack_alignment;
glGetIntegerv(GL_UNPACK_ALIGNMENT, &unpack_alignment);
@@ -387,7 +387,7 @@ static void draw_filled_lasso(wmGesture *gt)
MEM_freeN(pixel_buf);
GPU_blend(false);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
GPU_blend_set_func(GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA);
}
MEM_freeN(mcoords);