[Bf-blender-cvs] [79ee1b0] master: More missing calls to glLineWidth

Campbell Barton noreply at git.blender.org
Sun Jan 24 12:14:09 CET 2016


Commit: 79ee1b0b5ad630cbd93f6b6fd928f869b09e6665
Author: Campbell Barton
Date:   Sun Jan 24 22:06:05 2016 +1100
Branches: master
https://developer.blender.org/rB79ee1b0b5ad630cbd93f6b6fd928f869b09e6665

More missing calls to glLineWidth

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

M	source/blender/editors/screen/area.c

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

diff --git a/source/blender/editors/screen/area.c b/source/blender/editors/screen/area.c
index 574ae57..0e4dd70 100644
--- a/source/blender/editors/screen/area.c
+++ b/source/blender/editors/screen/area.c
@@ -409,6 +409,7 @@ static void region_draw_azones(ScrArea *sa, ARegion *ar)
 	if (!sa)
 		return;
 
+	glLineWidth(1.0f);
 	glEnable(GL_BLEND);
 	glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 
@@ -1940,6 +1941,8 @@ void ED_region_panels(const bContext *C, ARegion *ar, const char *context, int c
 		glClear(GL_COLOR_BUFFER_BIT);
 	}
 	
+	/* reset line width for drawing tabs */
+	glLineWidth(1.0f);
 
 	/* set the view */
 	UI_view2d_view_ortho(v2d);




More information about the Bf-blender-cvs mailing list