Cleanup: GPU: Replace glBlendFunc by GPU equivalent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user