diff options
Diffstat (limited to 'src/resources/sdl2imagehelper.cpp')
-rw-r--r-- | src/resources/sdl2imagehelper.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index 7d2c3d8ef..99aa53d2f 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -26,6 +26,7 @@ #include "resources/image/image.h" +#include "utils/checkutils.h" #include "utils/sdlcheckutils.h" #include "debug.h" @@ -70,7 +71,10 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) SDL_Texture *const texture = SDL_CreateTextureFromSurface( mRenderer, tmpImage); if (!texture) + { + reportAlways("Texture from surface creation failed"); return nullptr; + } SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); return new Image(texture, tmpImage->w, tmpImage->h); } |