Use fmt::format for LOGERROR

The format string can be checked at compile time. It will be easier to
transition to `std::format`.
This commit is contained in:
phosit committed 2026-10-05 20:29:26 +02:00
1 parent ba158aa3ff
commit 369a7e7e5d
115 files changed
+631 -454

No files matched your search

+4 -1
View File
@@ -146,7 +146,10 @@ ModelDefRData::ModelDefRData(const CModelDefPtr& modelDef)
// number of bones per model is 32.
// Add 1 to NumBones because of the special 'root' bone.
if (modelDef->GetNumBones() + 1 > 192)
LOGERROR("Model '%s' has too many bones %zu/192", modelDef->GetName().string8().c_str(), modelDef->GetNumBones() + 1);
{
LOGERROR("Model '{}' has too many bones {}/192", modelDef->GetName().string8(),
modelDef->GetNumBones() + 1);
}
ENSURE(modelDef->GetNumBones() + 1 <= 192);
m_BlendJoints.format = Renderer::Backend::Format::R8G8B8A8_UINT;