From 9fee755542319379f31d8116d6c8b2045df01a2b Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Fri, 14 Feb 2020 13:59:44 +0100 Subject: [PATCH] Change 'sdl.output' default to 'opengl' When OpenGL support is disabled during compilation, previous default of 'texture' is preserved. --- src/gui/sdlmain.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/sdlmain.cpp b/src/gui/sdlmain.cpp index 9426b810..6f78c9c2 100644 --- a/src/gui/sdlmain.cpp +++ b/src/gui/sdlmain.cpp @@ -2199,7 +2199,12 @@ void Config_Add_SDL() { #endif 0 }; - Pstring = sdl_sec->Add_string("output",Property::Changeable::Always,"texture"); + +#if C_OPENGL + Pstring = sdl_sec->Add_string("output", Property::Changeable::Always, "opengl"); +#else + Pstring = sdl_sec->Add_string("output", Property::Changeable::Always, "texture"); +#endif Pstring->Set_help("What video system to use for output."); Pstring->Set_values(outputs);