Skip to content

Commit

Permalink
mesh_gfx.cpp: More logging
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengtuggy committed Jan 13, 2025
1 parent c4a2fdc commit 0933770
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/src/gfx/mesh_gfx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,9 @@ Mesh::~Mesh() {
if (hashers && !hashers->empty()) {
const auto first_to_remove = std::stable_partition(hashers->begin(), hashers->end(),
[this](const Mesh * pi) { return pi != this; });
intmax_t num_hashers_removed = hashers->end() - first_to_remove;
hashers->erase(first_to_remove, hashers->end());
VS_LOG(debug, (boost::format("Mesh::~Mesh(): erased %1% meshes from hashers") % num_hashers_removed));
if (hashers->empty()) {
bfxmHashTable.Delete(hash_name);
delete hashers;
Expand Down

0 comments on commit 0933770

Please sign in to comment.