diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-09-23 11:50:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-23 11:50:23 +0200 |
commit | 9a463cb1d62a174aa34f608c0281963cdad255e9 (patch) | |
tree | 7f67de1413dfbcee027e27223f0710bbe1880d3e /main/main.cpp | |
parent | 78304b904ffd4816a3f2957fb3ddf2b20a13d66a (diff) | |
parent | f3c6ac1d7183a9aea2809ee283a5cd899caf9f3d (diff) |
Merge pull request #42263 from Faless/js/servers_no_threads
Ignore thread models when compiling with NO_THREAD
Diffstat (limited to 'main/main.cpp')
-rw-r--r-- | main/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index ced8d7227a..a039283235 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -1274,9 +1274,13 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph } if (rtm >= 0 && rtm < 3) { +#ifdef NO_THREADS + rtm = OS::RENDER_THREAD_UNSAFE; // No threads available on this platform. +#else if (editor) { rtm = OS::RENDER_THREAD_SAFE; } +#endif OS::get_singleton()->_render_thread_mode = OS::RenderThreadMode(rtm); } |