diff options
author | ROllerozxa <temporaryemail4meh+github@gmail.com> | 2022-08-04 20:42:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-04 20:42:43 +0200 |
commit | eb49b6d85cf9ba59da2321d7fe593986b2f1610f (patch) | |
tree | c6c23bb1ff0e8ade22aa60fef1e36f1b69f75838 /src/client | |
parent | b91063daef8da79533a375e461cdeac8541ec0f2 (diff) | |
download | minetest-eb49b6d85cf9ba59da2321d7fe593986b2f1610f.tar.gz minetest-eb49b6d85cf9ba59da2321d7fe593986b2f1610f.tar.bz2 minetest-eb49b6d85cf9ba59da2321d7fe593986b2f1610f.zip |
Disable dynamic shadow dropdown on OGLES2 (#12637)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/render/core.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/render/core.cpp b/src/client/render/core.cpp index 55cc4e490..ca5d3c614 100644 --- a/src/client/render/core.cpp +++ b/src/client/render/core.cpp @@ -35,6 +35,13 @@ RenderingCore::RenderingCore(IrrlichtDevice *_device, Client *_client, Hud *_hud screensize = driver->getScreenSize(); virtual_size = screensize; + // disable if unsupported + if (g_settings->getBool("enable_dynamic_shadows") && ( + g_settings->get("video_driver") != "opengl" || + !g_settings->getBool("enable_shaders"))) { + g_settings->setBool("enable_dynamic_shadows", false); + } + if (g_settings->getBool("enable_shaders") && g_settings->getBool("enable_dynamic_shadows")) { shadow_renderer = new ShadowRenderer(device, client); |