1
0
mirror of synced 2025-02-09 07:09:42 +01:00
This commit is contained in:
Syméon CARLE 2020-02-10 20:54:47 +01:00
parent 7a933aec76
commit 7f53534a1f

View File

@ -15,7 +15,7 @@ namespace Textures {
m_is_loading.insert(path);
}
auto texture = std::make_shared<sf::Texture>();
if (!texture->loadFromFile(path)) {
if (!texture->loadFromFile(path.string())) {
throw std::invalid_argument("Unable to load cover image : "+path.string());
}
texture->setSmooth(true);