From fcf1da7a161c3e18d393a9b998effc6aa1c366b9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 13 Sep 2013 19:10:50 +0300 Subject: fix code style. --- src/resources/openglimagehelper.cpp | 2 ++ src/resources/sdlmusic.cpp | 3 +++ 2 files changed, 5 insertions(+) (limited to 'src/resources') diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index 014c33362..2216659a3 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -215,6 +215,8 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, break; case RENDER_SOFTWARE: case RENDER_SDL2_DEFAULT: + case RENDER_NULL: + case RENDER_LAST: default: logger->log("Unknown OpenGL backend: %d", mUseOpenGL); break; diff --git a/src/resources/sdlmusic.cpp b/src/resources/sdlmusic.cpp index 6f1d81731..ef8ebb56d 100644 --- a/src/resources/sdlmusic.cpp +++ b/src/resources/sdlmusic.cpp @@ -41,6 +41,9 @@ Resource *SDLMusic::load(SDL_RWops *const rw) { #ifdef USE_SDL2 if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, 1)) +#elif defined ANDROID + // +++ here probably mem leak + if (Mix_Music *const music = Mix_LoadMUS_RW(rw)) #else if (Mix_Music *const music = Mix_LoadMUSType_RW(rw, MUS_OGG, SDL_TRUE)) #endif -- cgit v1.2.3-70-g09d2