mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Bump default renderer to GL3...
...and alter the render finding and fallback sequences to include GLES3 as the first fallback. This should have been done years ago, when GL3 became the clear better option above GL1.
This commit is contained in:
parent
23f60d25b1
commit
e61d9444c9
2 changed files with 11 additions and 5 deletions
|
@ -433,9 +433,9 @@ Set `0` by default.
|
|||
game can be paused, e.g. not in multiplayer games. Defaults to `0`.
|
||||
|
||||
* **vid_renderer**: Selects the renderer library. Possible options are
|
||||
`gl1` (the default) for the old OpenGL 1.4 renderer, `gl3` for the
|
||||
OpenGL 3.2 renderer, `gles3` for the OpenGL ES3 renderer
|
||||
and `soft` for the software renderer.
|
||||
`gl3` (the default) for the OpenGL 3.2 renderer, `gles3` for the
|
||||
OpenGL ES3 renderer, gl1 for the original OpenGL 1.4 renderer and
|
||||
`soft` for the software renderer.
|
||||
|
||||
|
||||
## Graphics (GL renderers only)
|
||||
|
|
|
@ -532,8 +532,9 @@ VID_CheckChanges(void)
|
|||
// Mkay, let's try our luck.
|
||||
while (!VID_LoadRenderer())
|
||||
{
|
||||
// We try: custom -> gl3 -> gl1 -> soft.
|
||||
// We try: custom -> gl3 -> gles3 -> gl1 -> soft.
|
||||
if ((strcmp(vid_renderer->string, "gl3") != 0) &&
|
||||
(strcmp(vid_renderer->string, "gles3") != 0) &&
|
||||
(strcmp(vid_renderer->string, "gl1") != 0) &&
|
||||
(strcmp(vid_renderer->string, "soft") != 0))
|
||||
{
|
||||
|
@ -541,6 +542,11 @@ VID_CheckChanges(void)
|
|||
Cvar_Set("vid_renderer", "gl3");
|
||||
}
|
||||
else if (strcmp(vid_renderer->string, "gl3") == 0)
|
||||
{
|
||||
Com_Printf("Retrying with gles3...\n");
|
||||
Cvar_Set("vid_renderer", "gles");
|
||||
}
|
||||
else if (strcmp(vid_renderer->string, "gles3") == 0)
|
||||
{
|
||||
Com_Printf("Retrying with gl1...\n");
|
||||
Cvar_Set("vid_renderer", "gl1");
|
||||
|
@ -576,7 +582,7 @@ VID_Init(void)
|
|||
// Console variables
|
||||
vid_gamma = Cvar_Get("vid_gamma", "1.0", CVAR_ARCHIVE);
|
||||
vid_fullscreen = Cvar_Get("vid_fullscreen", "0", CVAR_ARCHIVE);
|
||||
vid_renderer = Cvar_Get("vid_renderer", "gl1", CVAR_ARCHIVE);
|
||||
vid_renderer = Cvar_Get("vid_renderer", "gl3", CVAR_ARCHIVE);
|
||||
|
||||
// Commands
|
||||
Cmd_AddCommand("vid_restart", VID_Restart_f);
|
||||
|
|
Loading…
Reference in a new issue