From 9ea6291b7259de2935d1a8fe3b45ef8eb2c67ede Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 7 Sep 2017 01:39:55 +0300 Subject: Add SDL2 errors logging. --- src/utils/sdl2helper.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/utils/sdl2helper.cpp') 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 -- cgit v1.2.3-70-g09d2