diff options
author | Mike Erwin <significant.bit@gmail.com> | 2016-10-16 02:08:19 +0300 |
---|---|---|
committer | Mike Erwin <significant.bit@gmail.com> | 2016-10-16 02:08:19 +0300 |
commit | 878938f203b4a404ad238d63ff1636a6c6067d72 (patch) | |
tree | 216aa204c59708c80bc1b2068633ca24eef876da /source/blender/editors/interface/view2d.c | |
parent | 3996fbc564632b76ca00693e3eaa64827f5d5754 (diff) |
OpenGL: remove some unused legacy matrix calls
Part of T49450
Diffstat (limited to 'source/blender/editors/interface/view2d.c')
-rw-r--r-- | source/blender/editors/interface/view2d.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source/blender/editors/interface/view2d.c b/source/blender/editors/interface/view2d.c index c78d97ef86f..482b764117c 100644 --- a/source/blender/editors/interface/view2d.c +++ b/source/blender/editors/interface/view2d.c @@ -1100,9 +1100,6 @@ void UI_view2d_view_ortho(View2D *v2d) /* set matrix on all appropriate axes */ wmOrtho2(curmasked.xmin, curmasked.xmax, curmasked.ymin, curmasked.ymax); - - /* XXX is this necessary? */ - glLoadIdentity(); } /** @@ -1130,9 +1127,6 @@ void UI_view2d_view_orthoSpecial(ARegion *ar, View2D *v2d, const bool xaxis) wmOrtho2(curmasked.xmin - xofs, curmasked.xmax - xofs, -yofs, ar->winy - yofs); else wmOrtho2(-xofs, ar->winx - xofs, curmasked.ymin - yofs, curmasked.ymax - yofs); - - /* XXX is this necessary? */ - glLoadIdentity(); } @@ -2424,11 +2418,6 @@ void UI_view2d_text_cache_draw(ARegion *ar) BLI_memarena_free(g_v2d_strings_arena); g_v2d_strings_arena = NULL; } - - // glMatrixMode(GL_PROJECTION); - // glPopMatrix(); - // glMatrixMode(GL_MODELVIEW); - // glPopMatrix(); } |