summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorMarcelo Fernandez <marcelofg55@gmail.com>2018-03-04 14:18:05 -0300
committerMarcelo Fernandez <marcelofg55@gmail.com>2018-03-04 14:18:05 -0300
commitd780d774aa4630302fddbef0516e3f96beacd7b5 (patch)
tree15f3ee3c64b4882b7d2bf399d8f68755feda2ba3 /platform/android
parente619727e999ecd8e6883330f2c6950cd0624de99 (diff)
Clean and expose get_audio/video_driver_* funcs on OS class
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/os_android.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/os_android.cpp b/platform/android/os_android.cpp
index 67ce796279..5557c1de44 100644
--- a/platform/android/os_android.cpp
+++ b/platform/android/os_android.cpp
@@ -130,8 +130,6 @@ Error OS_Android::initialize(const VideoMode &p_desired, int p_video_driver, int
if (gfx_init_func)
gfx_init_func(gfx_init_ud, use_gl2);
- AudioDriverManager::add_driver(&audio_driver_android);
-
RasterizerGLES3::register_config();
RasterizerGLES3::make_current();
@@ -775,6 +773,8 @@ OS_Android::OS_Android(GFXInitFunc p_gfx_init_func, void *p_gfx_init_ud, OpenURI
Vector<Logger *> loggers;
loggers.push_back(memnew(AndroidLogger));
_set_logger(memnew(CompositeLogger(loggers)));
+
+ AudioDriverManager::add_driver(&audio_driver_android);
}
OS_Android::~OS_Android() {