From eeffaaf3ab0593f815e772bfb523b9e7a94d45f5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Aug 2016 22:38:06 +0300 Subject: Show better error in sdl2imagehelper. --- src/resources/sdl2imagehelper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index 99aa53d2f..e647bed8f 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -72,7 +72,8 @@ Image *SDLImageHelper::_SDLload(SDL_Surface *tmpImage) mRenderer, tmpImage); if (!texture) { - reportAlways("Texture from surface creation failed"); + reportAlways("Texture from surface creation failed: %s", + SDL_GetError()); return nullptr; } SDL_SetTextureBlendMode(texture, SDL_BLENDMODE_BLEND); -- cgit v1.2.3-70-g09d2