mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-22 23:58:48 -05:00
Prevent enabling Shaders if Direct3D is used
This commit is contained in:
parent
6f851c9692
commit
ee0b8da844
@ -645,7 +645,12 @@ function tabbuilder.handle_settings_buttons(fields)
|
||||
end
|
||||
|
||||
if fields["cb_shaders"] then
|
||||
engine.setting_set("enable_shaders", fields["cb_shaders"])
|
||||
if (engine.setting_get("video_driver") == "direct3d8" or engine.setting_get("video_driver") == "direct3d9") then
|
||||
engine.setting_set("enable_shaders", "false")
|
||||
gamedata.errormessage = fgettext("To enable shaders the OpenGL driver needs to be used.")
|
||||
else
|
||||
engine.setting_set("enable_shaders", fields["cb_shaders"])
|
||||
end
|
||||
end
|
||||
if fields["cb_pre_ivis"] then
|
||||
engine.setting_set("preload_item_visuals", fields["cb_pre_ivis"])
|
||||
|
Loading…
Reference in New Issue
Block a user