summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorROllerozxa <temporaryemail4meh+github@gmail.com>2021-11-26 19:33:24 +0100
committerGitHub <noreply@github.com>2021-11-26 19:33:24 +0100
commitc85aa0030f48e088d64a60b1e0df924a68c3964a (patch)
treee9eea4fdcde2d1d8cc5497a54192e1a14ed30b57 /builtin
parent87ab97da2ace31fdb46a88a0901ec664dd666feb (diff)
downloadminetest-c85aa0030f48e088d64a60b1e0df924a68c3964a.tar.gz
minetest-c85aa0030f48e088d64a60b1e0df924a68c3964a.tar.bz2
minetest-c85aa0030f48e088d64a60b1e0df924a68c3964a.zip
Remove unused Direct3D shader error/warning (#11793)
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/tab_settings.lua8
1 files changed, 1 insertions, 7 deletions
diff --git a/builtin/mainmenu/tab_settings.lua b/builtin/mainmenu/tab_settings.lua
index 29f3c9b62..42f7f8daf 100644
--- a/builtin/mainmenu/tab_settings.lua
+++ b/builtin/mainmenu/tab_settings.lua
@@ -275,13 +275,7 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
return true
end
if fields["cb_shaders"] then
- if (core.settings:get("video_driver") == "direct3d8" or
- core.settings:get("video_driver") == "direct3d9") then
- core.settings:set("enable_shaders", "false")
- gamedata.errormessage = fgettext("To enable shaders the OpenGL driver needs to be used.")
- else
- core.settings:set("enable_shaders", fields["cb_shaders"])
- end
+ core.settings:set("enable_shaders", fields["cb_shaders"])
return true
end
if fields["cb_tonemapping"] then