mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
cleanup
This commit is contained in:
parent
3dc776c90d
commit
434e8a6331
8 changed files with 49 additions and 139 deletions
|
|
@ -282,7 +282,7 @@ bool AssetsLoader::loadExternalTexture(
|
|||
for (auto& path : alternatives) {
|
||||
if (fs::exists(path)) {
|
||||
try {
|
||||
auto image = imageio::read(path.string());
|
||||
auto image = imageio::read(path);
|
||||
assets->store(Texture::from(image.get()), name);
|
||||
return true;
|
||||
} catch (const std::exception& err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue