Skip to content
Permalink
Browse files

Set editor hint early for Project Manager and Editor

We need it in setup() already before initializing the renderer,
as it's used to force fallback to GLES2 if GLES3 fails.

Fixes godotengine#26806.
  • Loading branch information...
akien-mga committed Mar 9, 2019
1 parent 86d6a72 commit d462e5153d8eeab42ca745a81ad5b2310f0dc200
Showing with 1 addition and 0 deletions.
  1. +1 −0 main/main.cpp
@@ -856,6 +856,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
}

if (editor || project_manager) {
Engine::get_singleton()->set_editor_hint(true);
use_custom_res = false;
input_map->load_default(); //keys for editor
} else {

0 comments on commit d462e51

Please sign in to comment.
You can’t perform that action at this time.