mirror of
https://github.com/SFML/SFML.git
synced 2025-02-19 06:39:59 +08:00
Print file extension when not recognized
This commit is contained in:
parent
bb1a465e50
commit
fb873548b6
@ -269,6 +269,10 @@ bool ImageLoader::saveImageToFile(const std::filesystem::path& filename,
|
|||||||
if (stbi_write_jpg(filename.string().c_str(), convertedSize.x, convertedSize.y, 4, pixels.data(), 90))
|
if (stbi_write_jpg(filename.string().c_str(), convertedSize.x, convertedSize.y, 4, pixels.data(), 90))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
err() << "Image file extension " << extension << " not supported\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err() << "Failed to save image\n" << formatDebugPathInfo(filename) << std::endl;
|
err() << "Failed to save image\n" << formatDebugPathInfo(filename) << std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user