[jak3] Fix defskelgroup (#3460)

Fixes https://github.com/open-goal/jak-project/issues/3459
This commit is contained in:
water111
2024-04-07 13:07:30 -04:00
committed by GitHub
parent 1394c5c00d
commit 5299bc441f
36 changed files with 136 additions and 115 deletions
+10 -1
View File
@@ -412,6 +412,15 @@ std::string TexturePool::get_debug_texture_name(PcTextureId id) {
if (it) {
return *it;
} else {
return "???";
return "??? (missing PC id to name mapping)";
}
}
std::string TexturePool::get_debug_texture_name_from_tbp(u32 tbp) {
auto info = lookup_gpu_texture(tbp);
if (!info) {
return "??? (bad tbp)";
} else {
return get_debug_texture_name(info->tex_id);
}
}