Skip to content

Commit

Permalink
Remove unused Direct3D shader error/warning (#11793)
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Nov 26, 2021
1 parent 87ab97d commit c85aa00
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions builtin/mainmenu/tab_settings.lua
Expand Up @@ -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
Expand Down

0 comments on commit c85aa00

Please sign in to comment.