1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

force thread model to single-safe when running editor, fixes #2387

This commit is contained in:
Juan Linietsky
2015-12-31 16:24:27 -03:00
parent 9c38ad0093
commit ec3d17b4e2
2 changed files with 6 additions and 1 deletions

View File

@@ -714,8 +714,12 @@ Error Main::setup(const char *execpath,int argc, char *argv[],bool p_second_phas
}
if (rtm>=0 && rtm<3)
if (rtm>=0 && rtm<3) {
if (editor) {
rtm=OS::RENDER_THREAD_SAFE;
}
OS::get_singleton()->_render_thread_mode=OS::RenderThreadMode(rtm);
}