UI: remove OpenGL calls from ED_region_init, now handled elsewhere
authorCampbell Barton <ideasman42@gmail.com>
Sat, 14 Jun 2014 07:40:33 +0000 (17:40 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 14 Jun 2014 07:40:33 +0000 (17:40 +1000)
source/blender/editors/screen/area.c

index 276fc9aca2822edca9e4bfe6ea404eb67ec2f3ca..42c61913aa137f7e19595fe22e7ae1bbf3b918f1 100644 (file)
@@ -1339,10 +1339,6 @@ void ED_region_init(bContext *C, ARegion *ar)
        region_subwindow(CTX_wm_window(C), ar);
        
        region_update_rect(ar);
-
-       /* UI convention */
-       wmOrtho2(-0.01f, ar->winx - 0.01f, -0.01f, ar->winy - 0.01f);
-       glLoadIdentity();
 }
 
 /* for quick toggle, can skip fades */