summaryrefslogtreecommitdiff
path: root/src/utils/sdl2helper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-07 01:39:55 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-07 01:56:53 +0300
commit9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede (patch)
treef30d5dfa2419260ada62144dc63e1dcb2ee92198 /src/utils/sdl2helper.cpp
parentbfe9b1eeb587254d92c3ebb338b50ce1e7dfac79 (diff)
downloadmanaplus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.gz
manaplus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.bz2
manaplus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.tar.xz
manaplus-9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede.zip
Add SDL2 errors logging.
Diffstat (limited to 'src/utils/sdl2helper.cpp')
-rw-r--r--src/utils/sdl2helper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/sdl2helper.cpp b/src/utils/sdl2helper.cpp
index d7df14af1..4f99dc512 100644
--- a/src/utils/sdl2helper.cpp
+++ b/src/utils/sdl2helper.cpp
@@ -25,6 +25,7 @@
#include "logger.h"
#include "utils/foreach.h"
+#include "utils/sdl2logger.h"
#include "utils/stringutils.h"
PRAGMA48(GCC diagnostic push)
@@ -182,4 +183,9 @@ void SDL::makeCurrentContext(void *const context A_UNUSED)
{
}
+void SDL::initLogger()
+{
+ SDL2Logger::init();
+}
+
#endif // USE_SDL2