mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-11-08 21:07:17 +00:00
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:
115 files changed
+631
-454
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user