Cleanup: unused main argument

This commit is contained in:
Campbell Barton 2020-08-04 20:22:07 +10:00
parent d6762bedee
commit 0dff6b2b4b
3 changed files with 5 additions and 5 deletions

View File

@ -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);
}

View File

@ -99,7 +99,7 @@ void WM_main(struct bContext *C) ATTR_NORETURN;
void WM_init_splash(struct bContext *C);
void WM_init_opengl(struct Main *bmain);
void WM_init_opengl(void);
void WM_check(struct bContext *C);
void WM_reinit_gizmomap_all(struct Main *bmain);

View File

@ -171,7 +171,7 @@ void WM_init_state_start_with_console_set(bool value)
*/
static bool opengl_is_init = false;
void WM_init_opengl(Main *UNUSED(bmain))
void WM_init_opengl(void)
{
/* must be called only once */
BLI_assert(opengl_is_init == false);
@ -312,7 +312,7 @@ void WM_init(bContext *C, int argc, const char **argv)
/* sets 3D mouse deadzone */
WM_ndof_deadzone_set(U.ndof_deadzone);
#endif
WM_init_opengl(G_MAIN);
WM_init_opengl();
if (!WM_platform_support_perform_checks()) {
exit(-1);