diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-08-04 13:22:07 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-08-04 14:25:28 +0300 |
commit | 0dff6b2b4bd74107f3736617d0572d0a47d7383f (patch) | |
tree | 09296f6ca4aede373c10f06763a4470c6a9576a4 /source/blender/draw/intern/draw_manager.c | |
parent | d6762bedee6fd12308e4cd6b46521caf1e2f6395 (diff) |
Cleanup: unused main argument
Diffstat (limited to 'source/blender/draw/intern/draw_manager.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/draw/intern/draw_manager.c b/source/blender/draw/intern/draw_manager.c index 712a93e8880..49b12aecf28 100644 --- a/source/blender/draw/intern/draw_manager.c +++ b/source/blender/draw/intern/draw_manager.c @@ -2716,7 +2716,7 @@ void DRW_engines_free(void) void DRW_render_context_enable(Render *render) { if (G.background && DST.gl_context == NULL) { - WM_init_opengl(G_MAIN); + WM_init_opengl(); } void *re_gl_context = RE_gl_context_get(render); @@ -2835,7 +2835,7 @@ void DRW_opengl_context_disable_ex(bool restore) void DRW_opengl_context_enable(void) { if (G.background && DST.gl_context == NULL) { - WM_init_opengl(G_MAIN); + WM_init_opengl(); } DRW_opengl_context_enable_ex(true); } |