Skip to content

Commit c85aa00

Browse files
authoredNov 26, 2021
Remove unused Direct3D shader error/warning (#11793)
1 parent 87ab97d commit c85aa00

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed
 

‎builtin/mainmenu/tab_settings.lua

+1-7
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,7 @@ local function handle_settings_buttons(this, fields, tabname, tabdata)
275275
return true
276276
end
277277
if fields["cb_shaders"] then
278-
if (core.settings:get("video_driver") == "direct3d8" or
279-
core.settings:get("video_driver") == "direct3d9") then
280-
core.settings:set("enable_shaders", "false")
281-
gamedata.errormessage = fgettext("To enable shaders the OpenGL driver needs to be used.")
282-
else
283-
core.settings:set("enable_shaders", fields["cb_shaders"])
284-
end
278+
core.settings:set("enable_shaders", fields["cb_shaders"])
285279
return true
286280
end
287281
if fields["cb_tonemapping"] then

0 commit comments

Comments
 (0)