diff options
author | Luca Rood <dev@lucarood.com> | 2017-02-23 08:52:36 +0300 |
---|---|---|
committer | Luca Rood <dev@lucarood.com> | 2017-02-23 09:21:58 +0300 |
commit | 3b3ed19c187242cde0d0aa9d932176dc8dded30c (patch) | |
tree | 70a709a3988300f4d87ea6d154e7fd4c4f9274c4 /source/blender/editors/screen/glutil.c | |
parent | 30420845b9fa59dcb78c9a5f2a30c819ab26d5b6 (diff) |
OpenGl immediate mode: remove imm_draw_line
Replaced all calls to `imm_draw_line` by plain `immVertex2f` calls, and
removed `imm_draw_line`, as that function was not supposed to exist in
the first place, and causes unnecessary calls to `immBegin`/`immEnd`.
Part of T49043
Diffstat (limited to 'source/blender/editors/screen/glutil.c')
-rw-r--r-- | source/blender/editors/screen/glutil.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c index 7f8454ac498..de24b8ec507 100644 --- a/source/blender/editors/screen/glutil.c +++ b/source/blender/editors/screen/glutil.c @@ -214,14 +214,6 @@ void imm_draw_line_box(unsigned pos, float x1, float y1, float x2, float y2) immEnd(); } -void imm_draw_line(unsigned pos, float x1, float y1, float x2, float y2) -{ - immBegin(PRIM_LINES, 2); - immVertex2f(pos, x1, y1); - immVertex2f(pos, x2, y2); - immEnd(); -} - void imm_draw_line_box_3D(unsigned pos, float x1, float y1, float x2, float y2) { /* use this version when VertexFormat has a vec3 position */ |