New logger
This commit is contained in:
@@ -26,7 +26,7 @@ TextureHandle ResourceRegistryRef::load<Texture>(const std::string& path) {
|
||||
// Always decode to RGBA8, whatever the file has.
|
||||
stbi_uc* pixels = stbi_load(path.c_str(), &width, &height, &channels, 4);
|
||||
if (pixels == nullptr) {
|
||||
log::fatal("failed to load texture", path, "-", stbi_failure_reason());
|
||||
log::fatal("failed to load texture {} - {}", path, stbi_failure_reason());
|
||||
throw std::runtime_error("failed to load texture: " + path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user