OpenGL: call glLineWidth less often
authorMike Erwin <significant.bit@gmail.com>
Sat, 23 Jan 2016 05:58:32 +0000 (00:58 -0500)
committerMike Erwin <significant.bit@gmail.com>
Sat, 23 Jan 2016 05:58:51 +0000 (00:58 -0500)
commite25ba162c0b62b19cf367f0f29e29d0c0960978d
tree6f274502a6fb22b1679decca4b944e09fab29137
parent90293a8da375b785fa58d3f56de1b286072107c1
OpenGL: call glLineWidth less often

Each LINES draw call is now responsible for its own line width. No need
to set it back to its 1.0 default after every draw.

This eliminates half our calls to glLineWidth , similar to last week’s
work on glPointSize.
25 files changed:
source/blender/blenkernel/intern/DerivedMesh.c
source/blender/editors/animation/anim_channels_defines.c
source/blender/editors/animation/anim_draw.c
source/blender/editors/armature/reeb.c
source/blender/editors/gpencil/drawgpencil.c
source/blender/editors/interface/interface_draw.c
source/blender/editors/interface/interface_icons.c
source/blender/editors/interface/interface_panel.c
source/blender/editors/mask/mask_draw.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/screen/screen_edit.c
source/blender/editors/sculpt_paint/paint_cursor.c
source/blender/editors/sculpt_paint/paint_image.c
source/blender/editors/space_clip/clip_draw.c
source/blender/editors/space_clip/clip_graph_draw.c
source/blender/editors/space_clip/clip_utils.c
source/blender/editors/space_graph/graph_draw.c
source/blender/editors/space_graph/space_graph.c
source/blender/editors/space_node/drawnode.c
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_view3d/drawarmature.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/transform/transform.c
source/blender/editors/uvedit/uvedit_draw.c