Build fix for non-HAVE_NETPLAY

This commit is contained in:
Twinaphex 2014-10-09 04:04:56 +02:00
parent 060ce68405
commit de130dd516
2 changed files with 2 additions and 2 deletions

View File

@ -919,7 +919,6 @@ static void lakka_context_reset(void *data)
int i, j, k;
char mediapath[256], themepath[256], iconpath[256];
menu_handle_t *menu = (menu_handle_t*)data;
gl_t *gl = (gl_t*)driver_video_resolve(NULL);
if (!menu)
return;
@ -1169,7 +1168,6 @@ static void lakka_init_core_info(void *data)
static void *lakka_init(void)
{
int i;
menu_handle_t *menu;
const video_driver_t *video_driver = NULL;
gl_t *gl = (gl_t*)driver_video_resolve(&video_driver);

View File

@ -2600,11 +2600,13 @@ bool rarch_main_command(unsigned cmd)
#endif
break;
case RARCH_CMD_NETPLAY_FLIP_PLAYERS:
#ifdef HAVE_NETPLAY
{
netplay_t *netplay = (netplay_t*)driver.netplay_data;
if (netplay)
netplay_flip_players(netplay);
}
#endif
break;
case RARCH_CMD_FULLSCREEN_TOGGLE:
if (!driver.video)