mirror of
https://github.com/open-goal/jak-project
synced 2026-07-10 23:22:17 -04:00
[jak2] fix atest flag in tfrag (#2381)
Support the weird `tfrag-gs-test` and `texture-page-flag` stuff added in jak 2. Solves some issues with partially invisible tfrags.
This commit is contained in:
@@ -1942,6 +1942,11 @@ void BspHeader::read_from_file(const decompiler::LinkedObjectFile& file,
|
||||
texture_remap_table.push_back(remap);
|
||||
}
|
||||
}
|
||||
|
||||
if (version > GameVersion::Jak1) {
|
||||
auto ff = get_field_ref(ref, "texture-flags", dts);
|
||||
memcpy_plain_data((u8*)texture_flags, ff, sizeof(u16) * kNumTextureFlags);
|
||||
}
|
||||
}
|
||||
|
||||
std::string BspHeader::print(const PrintSettings& settings) const {
|
||||
|
||||
Reference in New Issue
Block a user