Print SDL error when texture load fails
This commit is contained in:
parent
c4997823ed
commit
ec3be3c285
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue