engine: android: don't throw host error when initializing software renderer on Android

This commit is contained in:
Alibek Omarov 2019-10-11 11:53:52 +03:00
parent d3dd671759
commit 06e38b45c8
1 changed files with 6 additions and 1 deletions

View File

@ -96,7 +96,6 @@ qboolean R_Init_Video( const int type )
{
case REF_SOFTWARE:
glw_state.software = true;
Host_Error( "software mode isn't supported on Android yet! :(\n", type );
break;
case REF_GL:
if( !glw_state.safe && Sys_GetParmFromCmdLine( "-safegl", safe ) )
@ -110,6 +109,12 @@ qboolean R_Init_Video( const int type )
break;
}
if( glw_state.software )
{
Con_Reportf( S_ERROR "Native software mode isn't supported on Android yet! :(\n" );
return false;
}
if( !(retval = VID_SetMode()) )
{
return retval;