diff --git a/scripts/android/files/java/org/ddnet/client/NativeMain.java b/scripts/android/files/java/org/ddnet/client/NativeMain.java index fc994236d..e56d4cebc 100644 --- a/scripts/android/files/java/org/ddnet/client/NativeMain.java +++ b/scripts/android/files/java/org/ddnet/client/NativeMain.java @@ -29,8 +29,8 @@ public class NativeMain extends SDLActivity { if(gfxBackend != null) { if(gfxBackend.equals("Vulkan")) { launchArguments = new String[] {"gfx_backend Vulkan"}; - } else if(gfxBackend.equals("OpenGL")) { - launchArguments = new String[] {"gfx_backend OpenGL"}; + } else if(gfxBackend.equals("GLES")) { + launchArguments = new String[] {"gfx_backend GLES"}; } } } diff --git a/scripts/android/files/res/values/strings.xml b/scripts/android/files/res/values/strings.xml index 24bbf05b0..c9b6483ce 100644 --- a/scripts/android/files/res/values/strings.xml +++ b/scripts/android/files/res/values/strings.xml @@ -2,5 +2,5 @@ DDNet Play (Vulkan) - Play (OpenGL) + Play (OpenGL ES) diff --git a/scripts/android/files/res/xml/shortcuts.xml b/scripts/android/files/res/xml/shortcuts.xml index 558afd216..c2ebe2357 100644 --- a/scripts/android/files/res/xml/shortcuts.xml +++ b/scripts/android/files/res/xml/shortcuts.xml @@ -14,17 +14,17 @@ + android:shortcutShortLabel="@string/shortcut_play_gles_short"> + android:value="GLES" /> diff --git a/src/engine/shared/config_variables.h b/src/engine/shared/config_variables.h index ccdc95d9f..05373fa5b 100644 --- a/src/engine/shared/config_variables.h +++ b/src/engine/shared/config_variables.h @@ -717,7 +717,9 @@ MACRO_CONFIG_STR(Gfx3DTextureAnalysisRenderer, gfx_3d_texture_analysis_renderer, MACRO_CONFIG_STR(Gfx3DTextureAnalysisVersion, gfx_3d_texture_analysis_version, 128, "", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The version on which the analysis was performed") MACRO_CONFIG_STR(GfxGpuName, gfx_gpu_name, 256, "auto", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The GPU's name, which will be selected by the backend. (if supported by the backend)") -#if !defined(CONF_ARCH_IA32) && !defined(CONF_PLATFORM_MACOS) +#if defined(CONF_PLATFORM_ANDROID) +MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "GLES", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. GLES or Vulkan)") +#elif !defined(CONF_ARCH_IA32) && !defined(CONF_PLATFORM_MACOS) MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "Vulkan", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. OpenGL or Vulkan)") #else MACRO_CONFIG_STR(GfxBackend, gfx_backend, 256, "OpenGL", CFGFLAG_SAVE | CFGFLAG_CLIENT, "The backend to use (e.g. OpenGL or Vulkan)")