diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-24 18:51:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | 43fd8a8d53d4bd811a8e4d468a78f201148e5896 (patch) | |
tree | d9301ad729927db224c35636890782e4748b0599 /src/resources/sdl2imagehelper.cpp | |
parent | 889ea19ddd5b4240375793d5030a04ed4642ec66 (diff) | |
download | mv-43fd8a8d53d4bd811a8e4d468a78f201148e5896.tar.gz mv-43fd8a8d53d4bd811a8e4d468a78f201148e5896.tar.bz2 mv-43fd8a8d53d4bd811a8e4d468a78f201148e5896.tar.xz mv-43fd8a8d53d4bd811a8e4d468a78f201148e5896.zip |
fix atlases cretion in SDL2.
Diffstat (limited to 'src/resources/sdl2imagehelper.cpp')
-rw-r--r-- | src/resources/sdl2imagehelper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index acc72ce00..c5a75d236 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -137,7 +137,8 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) const if (!tmpImage) return nullptr; - return new Image(tmpImage, false, nullptr); + SDL_Surface *image = convertTo32Bit(tmpImage); + return new Image(image, false, nullptr); } int SDLImageHelper::useOpenGL() const |