mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +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)
|
static void *lakka_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
menu_handle_t *menu = (menu_handle_t*)calloc(1, sizeof(*menu));
|
menu_handle_t *menu;
|
||||||
gl_t *gl = (gl_t*)driver.video_data;
|
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)
|
if (!menu || !gl)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user