diff options
| author | Emmanuel Leblond | 2018-01-03 18:26:44 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2018-01-04 15:15:55 +0100 |
| commit | e315c94900be47e61152a2958011e14b7e635a3e (patch) | |
| tree | 9fbe974664cd253d3fdd0792db0b7b5f91cfcde6 /main/main.cpp | |
| parent | 99eb394a5f5f164a562e315980cb730a704a0a1c (diff) | |
| download | godot-e315c94900be47e61152a2958011e14b7e635a3e.tar.gz godot-e315c94900be47e61152a2958011e14b7e635a3e.tar.zst godot-e315c94900be47e61152a2958011e14b7e635a3e.zip | |
Diffstat (limited to 'main/main.cpp')
| -rw-r--r-- | main/main.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/main.cpp b/main/main.cpp index ac68fe129..1cb89e87e 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -983,7 +983,10 @@ Error Main::setup2(Thread::ID p_main_tid_override) { Thread::_main_thread_id = p_main_tid_override; } - OS::get_singleton()->initialize(video_mode, video_driver_idx, audio_driver_idx); + Error err = OS::get_singleton()->initialize(video_mode, video_driver_idx, audio_driver_idx); + if (err != OK) { + return err; + } if (init_use_custom_pos) { OS::get_singleton()->set_window_position(init_custom_pos); } |
