From ec3be3c285a702a3aa098245de2635e9f36dd4d8 Mon Sep 17 00:00:00 2001 From: Adrian Hedqvist Date: Sun, 17 Sep 2017 21:14:24 +0200 Subject: [PATCH] Print SDL error when texture load fails --- src/Renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Renderer.cpp b/src/Renderer.cpp index 0899f18..959f0d8 100644 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -260,7 +260,7 @@ Texture * Renderer::LoadTexture(std::string path) { return &textures[path]; } else { - SDL_Log("Error: Could not load texture \"%s\"\n", path.c_str()); + SDL_Log("Error: Could not load texture \"%s\"\n\t%s\n", path.c_str(), SDL_GetError()); return nullptr; } }