Minor adjustments now that OpenGLES 2 is the default driver on Android (#12391)

This commit is contained in:
ROllerozxa 2023-03-05 15:07:40 +01:00 committed by GitHub
parent 847ed04e0a
commit c91f3f99fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 8 deletions

@ -6,6 +6,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-feature android:glEsVersion="0x00020000" />
<!--
`android:requestLegacyExternalStorage="true"` is workaround for using `/sdcard`

@ -1649,10 +1649,9 @@ ignore_world_load_errors (Ignore world errors) bool false
shader_path (Shader path) path
# The rendering back-end.
# A restart is required after changing this.
# Note: On Android, stick with OGLES1 if unsure! App may fail to start otherwise.
# On other platforms, OpenGL is recommended.
# Shaders are supported by OpenGL (desktop only) and OGLES2 (experimental)
# Note: A restart is required after changing this!
# OpenGL is the default for desktop, and OGLES2 for Android.
# Shaders are supported by OpenGL and OGLES2 (experimental).
video_driver (Video driver) enum opengl opengl,ogles1,ogles2
# Distance in nodes at which transparency depth sorting is enabled

@ -245,11 +245,7 @@ void set_default_settings()
settings->setDefault("texture_clean_transparent", "false");
settings->setDefault("texture_min_size", "64");
settings->setDefault("ambient_occlusion_gamma", "1.8");
#if ENABLE_GLES
settings->setDefault("enable_shaders", "false");
#else
settings->setDefault("enable_shaders", "true");
#endif
settings->setDefault("enable_particles", "true");
settings->setDefault("arm_inertia", "true");
settings->setDefault("show_nametag_backgrounds", "true");