Small change in context profile selection and more info about graphics devices in help switch
parent
9c32f705b6
commit
d39604cb0e
|
@ -312,7 +312,7 @@ ParseArgsStatus CApplication::ParseArguments(int argc, char *argv[])
|
||||||
GetLogger()->Message(" -mod path load datadir mod from given path\n");
|
GetLogger()->Message(" -mod path load datadir mod from given path\n");
|
||||||
GetLogger()->Message(" -resolution WxH set resolution\n");
|
GetLogger()->Message(" -resolution WxH set resolution\n");
|
||||||
GetLogger()->Message(" -headless headless mode - disables graphics, sound and user interaction\n");
|
GetLogger()->Message(" -headless headless mode - disables graphics, sound and user interaction\n");
|
||||||
GetLogger()->Message(" -graphics changes graphics device (defaults to opengl)\n");
|
GetLogger()->Message(" -graphics changes graphics device (one of: default, auto, opengl, gl14, gl21, gl33\n");
|
||||||
GetLogger()->Message(" -glversion sets OpenGL context version to use (either default or version in format #.#)\n");
|
GetLogger()->Message(" -glversion sets OpenGL context version to use (either default or version in format #.#)\n");
|
||||||
GetLogger()->Message(" -glprofile sets OpenGL context profile to use (one of: default, core, compatibility, opengles)\n");
|
GetLogger()->Message(" -glprofile sets OpenGL context profile to use (one of: default, core, compatibility, opengles)\n");
|
||||||
return PARSE_ARGS_HELP;
|
return PARSE_ARGS_HELP;
|
||||||
|
@ -772,6 +772,8 @@ bool CApplication::CreateVideoSurface()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (profile != 0)
|
||||||
|
{
|
||||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, profile);
|
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, profile);
|
||||||
|
|
||||||
switch (profile)
|
switch (profile)
|
||||||
|
@ -786,6 +788,7 @@ bool CApplication::CreateVideoSurface()
|
||||||
GetLogger()->Info("Requesting OpenGL ES profile\n");
|
GetLogger()->Info("Requesting OpenGL ES profile\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* If hardware acceleration specifically requested, this will force the hw accel
|
/* If hardware acceleration specifically requested, this will force the hw accel
|
||||||
and fail with error if not available */
|
and fail with error if not available */
|
||||||
|
|
Loading…
Reference in New Issue