diff --git a/src/common/settings.h b/src/common/settings.h index 0d980406f..da0b661ad 100644 --- a/src/common/settings.h +++ b/src/common/settings.h @@ -17,6 +17,7 @@ namespace Settings { +constexpr u32 GraphicsAPICount = 2; enum class GraphicsAPI { Software = 0, OpenGL = 1, @@ -425,7 +426,9 @@ struct Values { Setting allow_plugin_loader{true, "allow_plugin_loader"}; // Renderer - SwitchableSetting graphics_api{GraphicsAPI::OpenGL, "graphics_api"}; + SwitchableSetting graphics_api{ + GraphicsAPI::OpenGL, GraphicsAPI::Software, static_cast(GraphicsAPICount - 1), + "graphics_api"}; Setting use_gles{false, "use_gles"}; Setting renderer_debug{false, "renderer_debug"}; SwitchableSetting use_hw_shader{true, "use_hw_shader"};