aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-03-05 15:55:00 +0100
committersfan5 <sfan5@live.de>2023-04-08 20:19:35 +0200
commitc26e122485a7180edf434c0c1211713ff377d6d7 (patch)
tree425e362522dcaaf66c75fc79be9f743919ab65b3 /builtin
parent67068cfaf43ef95e526401d9f788790516b9f8ed (diff)
downloadminetest-c26e122485a7180edf434c0c1211713ff377d6d7.tar.xz
Move video_driver default selection to runtime
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_settings.lua2
-rw-r--r--builtin/settingtypes.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua
index ec2d7b1f5..404286acf 100644
--- a/builtin/mainmenu/tab_settings.lua
+++ b/builtin/mainmenu/tab_settings.lua
@@ -171,7 +171,7 @@ local function formspec(tabview, name, tabdata)
.. getSettingIndex.Antialiasing() .. "]" ..
"box[8,0;3.75,4.5;#999999]"
- local video_driver = core.settings:get("video_driver")
+ local video_driver = core.get_active_driver()
local shaders_enabled = core.settings:get_bool("enable_shaders")
if video_driver == "opengl" then
tab_string = tab_string ..
diff --git a/builtin/settingtypes.txt b/builtin/settingtypes.txt
index 054c37bd2..9d4de64d9 100644
--- a/builtin/settingtypes.txt
+++ b/builtin/settingtypes.txt
@@ -1664,7 +1664,7 @@ shader_path (Shader path) path
# 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
+video_driver (Video driver) enum opengl,ogles1,ogles2,
# Distance in nodes at which transparency depth sorting is enabled
# Use this to limit the performance impact of transparency depth sorting