diff options
author | Marcelo Fernandez <marcelofg55@gmail.com> | 2017-09-13 13:34:22 -0300 |
---|---|---|
committer | marcelofg55 <marcelofg55@gmail.com> | 2017-09-13 20:54:55 -0300 |
commit | 7a4c0ff35e10fba5f2686e7fd5623eab31b07a2d (patch) | |
tree | adf99ac4cff62e6898c14834400034cef668e54b /platform/uwp | |
parent | d6b392825fc3e22d9e0c62f0d17633c4224eb28f (diff) |
Fix crash when no audio driver is available
Diffstat (limited to 'platform/uwp')
-rw-r--r-- | platform/uwp/os_uwp.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/platform/uwp/os_uwp.cpp b/platform/uwp/os_uwp.cpp index 3a8932aae2..920bc9fe36 100644 --- a/platform/uwp/os_uwp.cpp +++ b/platform/uwp/os_uwp.cpp @@ -268,12 +268,7 @@ void OSUWP::initialize(const VideoMode &p_desired, int p_video_driver, int p_aud joypad = ref new JoypadUWP(input); joypad->register_events(); - AudioDriverManager::get_driver(p_audio_driver)->set_singleton(); - - if (AudioDriverManager::get_driver(p_audio_driver)->init() != OK) { - - ERR_PRINT("Initializing audio failed."); - } + AudioDriverManager::initialize(p_audio_driver); power_manager = memnew(PowerUWP); |