Corrected a mistake in -glprofile argument parsing

dev-time-step
Tomasz Kapuściński 2016-02-17 23:04:34 +01:00
parent 5c9bdde587
commit 8414ae794d
1 changed files with 5 additions and 2 deletions

View File

@ -466,8 +466,11 @@ ParseArgsStatus CApplication::ParseArguments(int argc, char *argv[])
m_glProfile = SDL_GL_CONTEXT_PROFILE_ES;
m_glProfileOverride = true;
}
GetLogger()->Error("Invalid OpenGL profile: %s\n", optarg);
else
{
GetLogger()->Error("Invalid OpenGL profile: %s\n", optarg);
return PARSE_ARGS_FAIL;
}
break;
}
default: