Commit: 03574930338b6e85bf7bc2aefde2d2daeb7d89a2
Author: Dalai Felinto
Date:   Wed Apr 25 13:07:22 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB03574930338b6e85bf7bc2aefde2d2daeb7d89a2

Fix T54806: Editors drawing glitch when using lasso selection

We should always reset to default glBlendFunc after done drawing.

===================================================================

M       source/blender/windowmanager/intern/wm_gesture.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_gesture.c 
b/source/blender/windowmanager/intern/wm_gesture.c
index 6da9101156a..c2331f44056 100644
--- a/source/blender/windowmanager/intern/wm_gesture.c
+++ b/source/blender/windowmanager/intern/wm_gesture.c
@@ -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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to