summaryrefslogtreecommitdiff
path: root/platform/javascript/os_javascript.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-03-05 10:50:35 +0100
committerGitHub <noreply@github.com>2018-03-05 10:50:35 +0100
commitb3f43496a503096e52d6e3f7522a24b251e7bc98 (patch)
tree6fbafc2f88cc50525a261581112f25abf9887498 /platform/javascript/os_javascript.cpp
parent6a6aab498eab5d35621079aa6b0548e74e00dcb6 (diff)
parentd780d774aa4630302fddbef0516e3f96beacd7b5 (diff)
Merge pull request #17256 from marcelofg55/drivers_funcs
Clean and expose get_audio/video_driver_* funcs on OS class
Diffstat (limited to 'platform/javascript/os_javascript.cpp')
-rw-r--r--platform/javascript/os_javascript.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp
index e226ab6332..5ae232d8f3 100644
--- a/platform/javascript/os_javascript.cpp
+++ b/platform/javascript/os_javascript.cpp
@@ -447,7 +447,6 @@ Error OS_JavaScript::initialize(const VideoMode &p_desired, int p_video_driver,
print_line("Init Audio");
- AudioDriverManager::add_driver(&audio_driver_javascript);
AudioDriverManager::initialize(p_audio_driver);
RasterizerGLES3::register_config();
@@ -1012,6 +1011,8 @@ OS_JavaScript::OS_JavaScript(const char *p_execpath, GetUserDataDirFunc p_get_us
Vector<Logger *> loggers;
loggers.push_back(memnew(StdLogger));
_set_logger(memnew(CompositeLogger(loggers)));
+
+ AudioDriverManager::add_driver(&audio_driver_javascript);
}
OS_JavaScript::~OS_JavaScript() {