mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
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:
parent
80e90e532a
commit
1a9f1f6b33
@ -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));
|
||||
|
||||
|
@ -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));
|
||||
|
@ -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';
|
||||
|
@ -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));
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user