mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-24 11:45:16 +00:00
(Lakka) Stop initialization if gl is not active
This commit is contained in:
parent
da088073ec
commit
48f4a96605
@ -1104,8 +1104,17 @@ static void lakka_init_core_info(void *data)
|
||||
static void *lakka_init(void)
|
||||
{
|
||||
int i;
|
||||
menu_handle_t *menu = (menu_handle_t*)calloc(1, sizeof(*menu));
|
||||
gl_t *gl = (gl_t*)driver.video_data;
|
||||
menu_handle_t *menu;
|
||||
gl_t *gl;
|
||||
|
||||
if (driver.video != &video_gl)
|
||||
{
|
||||
RARCH_ERR("Cannot initialize Lakka menu driver: gl video driver is not active.\n");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
menu = (menu_handle_t*)calloc(1, sizeof(*menu));
|
||||
gl = (gl_t*)driver.video_data;
|
||||
|
||||
if (!menu || !gl)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user