gfx_display_init_first_driver was called twice, once invoked by

drivers_init, after that invoked by each menu driver's init function.
Taking the extra function call out of the menu driver's init function
This commit is contained in:
twinaphex 2021-02-22 06:38:55 +01:00
parent 80e90e532a
commit 1a9f1f6b33
5 changed files with 0 additions and 20 deletions

View File

@ -7630,9 +7630,6 @@ static void *materialui_init(void **userdata, bool video_is_threaded)
return NULL;
}
if (!gfx_display_init_first_driver(video_is_threaded))
goto error;
mui = (materialui_handle_t*)
calloc(1, sizeof(materialui_handle_t));

View File

@ -691,9 +691,6 @@ static void *ozone_init(void **userdata, bool video_is_threaded)
if (!menu)
return NULL;
if (!gfx_display_init_first_driver(video_is_threaded))
goto error;
video_driver_get_size(&width, &height);
ozone = (ozone_handle_t*)calloc(1, sizeof(ozone_handle_t));

View File

@ -5229,12 +5229,7 @@ static void *rgui_init(void **userdata, bool video_is_threaded)
rgui->widgets_supported = gfx_widgets_ready();
if (rgui->widgets_supported)
{
if (!gfx_display_init_first_driver(video_is_threaded))
goto error;
gfx_display_init_white_texture(gfx_display_white_texture);
}
#endif
rgui->menu_title[0] = '\0';

View File

@ -3318,9 +3318,6 @@ static void *stripes_init(void **userdata, bool video_is_threaded)
if (!menu)
goto error;
if (!gfx_display_init_first_driver(video_is_threaded))
goto error;
video_driver_get_size(&width, &height);
stripes = (stripes_handle_t*)calloc(1, sizeof(stripes_handle_t));

View File

@ -5583,12 +5583,6 @@ static void *xmb_init(void **userdata, bool video_is_threaded)
if (!menu)
return NULL;
if (!gfx_display_init_first_driver(video_is_threaded))
{
free(menu);
return NULL;
}
video_driver_get_size(&width, &height);
xmb = (xmb_handle_t*)calloc(1, sizeof(xmb_handle_t));