Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r--source/blender/editors/interface/interface_panel.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c
index 5ee7556a042..2fdd84b626b 100644
--- a/source/blender/editors/interface/interface_panel.c
+++ b/source/blender/editors/interface/interface_panel.c
@@ -452,8 +452,6 @@ static void ui_draw_anti_x(float x1, float y1, float x2, float y2)
fdrawline(x1, y1, x2, y2);
fdrawline(x1, y2, x2, y1);
- glLineWidth(1.0);
-
glDisable(GL_LINE_SMOOTH);
glDisable(GL_BLEND);
@@ -1475,6 +1473,7 @@ void UI_panel_category_active_set(ARegion *ar, const char *idname)
pc_act_next = pc_act->next;
if (!BLI_findstring(&ar->type->paneltypes, pc_act->idname, offsetof(PanelType, category))) {
BLI_remlink(lb, pc_act);
+ MEM_freeN(pc_act);
}
}
}
@@ -1648,7 +1647,7 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
/* Secondary theme colors */
unsigned char theme_col_tab_outline[3];
- unsigned char theme_col_tab_divider[3]; /* line that divides tabs from the main area */
+ unsigned char theme_col_tab_divider[3]; /* line that divides tabs from the main region */
unsigned char theme_col_tab_highlight[3];
unsigned char theme_col_tab_highlight_inactive[3];
@@ -1761,7 +1760,6 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
/* tab outline */
glColor3ubv(theme_col_tab_outline);
- glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
ui_panel_category_draw_tab(GL_LINE_STRIP, rct->xmin - px, rct->ymin - px, rct->xmax - px, rct->ymax + px,
tab_curve_radius, roundboxtype, true, true, NULL);
/* tab highlight (3d look) */
@@ -1771,8 +1769,6 @@ void UI_panel_category_draw_all(ARegion *ar, const char *category_id_active)
tab_curve_radius, roundboxtype, true, false,
is_active ? theme_col_back : theme_col_tab_inactive);
glShadeModel(GL_FLAT);
-
- glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
}
/* tab blackline */