summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-28 22:38:06 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-28 22:38:06 +0300
commiteeffaaf3ab0593f815e772bfb523b9e7a94d45f5 (patch)
tree47bcd8440bcc4cf7e335264a1dfdbeeee8854a6d
parent382defab18bf7e1dc35c243b661e7557b0dca1ac (diff)
downloadmanaverse-eeffaaf3ab0593f815e772bfb523b9e7a94d45f5.tar.gz
manaverse-eeffaaf3ab0593f815e772bfb523b9e7a94d45f5.tar.bz2
manaverse-eeffaaf3ab0593f815e772bfb523b9e7a94d45f5.tar.xz
manaverse-eeffaaf3ab0593f815e772bfb523b9e7a94d45f5.zip
Show better error in sdl2imagehelper.
-rw-r--r--src/resources/sdl2imagehelper.cpp3
1 files changed, 2 insertions, 1 deletions
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);