FIX: error handling for glTF/texture/IBL loadings

This commit is contained in:
2025-12-06 17:49:46 +09:00
parent 6f2b201a88
commit ba89f5aa2c
2 changed files with 58 additions and 8 deletions

View File

@@ -573,6 +573,12 @@ std::pair<AllocatedImage, bool> AssetManager::loadImageFromAsset(std::string_vie
false);
created = true;
}
else
{
fmt::println("[AssetManager] Failed to load texture '{}' (resolved='{}')",
imgPath,
resolved);
}
if (pixels) stbi_image_free(pixels);
}
return {out, created};