diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-01-23 08:58:32 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-01-23 08:58:51 +0300 |
commit | e25ba162c0b62b19cf367f0f29e29d0c0960978d (patch) | |
tree | 6f274502a6fb22b1679decca4b944e09fab29137 /source/blender/editors/screen/screen_edit.c | |
parent | 90293a8da375b785fa58d3f56de1b286072107c1 (diff) |
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.
Diffstat (limited to 'source/blender/editors/screen/screen_edit.c')
-rw-r--r-- | source/blender/editors/screen/screen_edit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 461cdb29b84..8e969e096d3 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1045,11 +1045,11 @@ static void drawscredge_area(ScrArea *sa, int sizex, int sizey, int center) glColor3ub(0x50, 0x50, 0x50); glLineWidth((2.0f * U.pixelsize) - 1); drawscredge_area_draw(sizex, sizey, x1, y1, x2, y2, 0); - glLineWidth(1.0f); } } else { glColor3ub(0, 0, 0); + glLineWidth(1); drawscredge_area_draw(sizex, sizey, x1, y1, x2, y2, 0); } } |