Remove fmt::format and replace with std::format

This commit is contained in:
Alexander Bock
2024-03-24 20:19:14 +01:00
parent 9878bfc8f7
commit 3ba346a227
246 changed files with 1343 additions and 1300 deletions
@@ -507,7 +507,7 @@ void RenderablePlanesCloud::loadTextures() {
}
else {
// We can't really recover from this as it would crash during rendering anyway
throw ghoul::RuntimeError(fmt::format(
throw ghoul::RuntimeError(std::format(
"Could not find image file '{}'", tex.file
));
}
@@ -516,14 +516,14 @@ void RenderablePlanesCloud::loadTextures() {
ghoul::io::TextureReader::ref().loadTexture(path.string(), 2);
if (t) {
LINFOC("RenderablePlanesCloud", fmt::format("Loaded texture '{}'", path));
LINFOC("RenderablePlanesCloud", std::format("Loaded texture '{}'", path));
t->uploadTexture();
t->setFilter(ghoul::opengl::Texture::FilterMode::LinearMipMap);
t->purgeFromRAM();
}
else {
// Same here, we won't be able to recover from this nullptr
throw ghoul::RuntimeError(fmt::format(
throw ghoul::RuntimeError(std::format(
"Could not find image file '{}'", tex.file
));
}