Fix T54806: Editors drawing glitch when using lasso selection

We should always reset to default glBlendFunc after done drawing.
This commit is contained in:
Dalai Felinto 2018-04-25 13:07:22 +02:00
parent fe149da993
commit 0357493033
Notes: blender-bot 2023-02-14 05:58:20 +01:00
Referenced by issue #54806, Editors drawing glitch when using lasso selection.
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ static void draw_filled_lasso(wmGesture *gt)
MEM_freeN(pixel_buf);
glDisable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
}
MEM_freeN(moves);