diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-22 09:57:31 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-22 10:52:12 +0300 |
commit | 8c596e08e7b787782c91578ffd46c6ec8e409023 (patch) | |
tree | 0efd619da0d10c1220d11d40dc06267467607a33 /source/blender/editors/interface/interface_panel.c | |
parent | 66d9efe765626887a911cd0415681bbd4b21c89c (diff) |
OpenGL: remove unneeded state changes
UI_panel_category_draw_all was setting PolygonMode to LINES before
drawing LINES.
stitch_draw was setting PolygonMode to its default FILL value — any
function that deviates from the default should’ve changed it back to
FILL.
Diffstat (limited to 'source/blender/editors/interface/interface_panel.c')
-rw-r--r-- | source/blender/editors/interface/interface_panel.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_panel.c b/source/blender/editors/interface/interface_panel.c index 8242d029b6a..f5dc85c1ea7 100644 --- a/source/blender/editors/interface/interface_panel.c +++ b/source/blender/editors/interface/interface_panel.c @@ -1761,7 +1761,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 +1770,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 */ |