Skip to content

Use correct texture mask based on version#1595

Merged
chreden merged 2 commits into
masterfrom
issue/1594
Jun 28, 2026
Merged

Use correct texture mask based on version#1595
chreden merged 2 commits into
masterfrom
issue/1594

Conversation

@chreden

@chreden chreden commented Jun 28, 2026

Copy link
Copy Markdown
Owner

TR5 uses 0x3fff for texture mask, others use 0x7fff. Previously this was changed to be 0x3fff for everything which works in most cases but some customs trip it up.
Add a check on the version in mesh loading.
Also disable some warnings on external projects.
Closes #1594

chreden added 2 commits June 27, 2026 18:47
Some texture masks were set to 0x3fff instead of 0x7fff.
Closes #1594
Set texture mask to 0x7fff all the time apart from TR5 which is 0x3fff.
Also disable warnings on external projects
@chreden chreden requested review from lahm86 and makotocchi June 28, 2026 06:42
@chreden chreden self-assigned this Jun 28, 2026
@chreden chreden added bug TR5 Tomb Raider V Customs labels Jun 28, 2026
@chreden chreden enabled auto-merge (squash) June 28, 2026 06:42
@chreden chreden merged commit 847c699 into master Jun 28, 2026
1 check passed
@chreden chreden deleted the issue/1594 branch June 28, 2026 07:22
@chreden chreden added this to the Next milestone Jun 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

High index textures mapped incorrectly

2 participants