Skip to content

Fix off-by-one in size for textures#1508

Merged
chreden merged 2 commits intomasterfrom
issue/1505
Oct 17, 2025
Merged

Fix off-by-one in size for textures#1508
chreden merged 2 commits intomasterfrom
issue/1505

Conversation

@chreden
Copy link
Owner

@chreden chreden commented Oct 17, 2025

Change the x or y +1 into max(x or y, 1) for texture size calculation in texture replacement.
The +1 was to avoid 0 width/height textures but the max does this in a way that actually makes sense.
Closes #1505

Change the `x or y +1` into `max(x or y, 1)` for texture size calculation in texture replacement. The +1 was to avoid 0 width/height textures but the max does this in a way that actually makes sense.
Closes #1505
@chreden chreden added this to the Next milestone Oct 17, 2025
@chreden chreden requested review from lahm86 and makotocchi October 17, 2025 18:05
@chreden chreden self-assigned this Oct 17, 2025
@chreden chreden enabled auto-merge (squash) October 17, 2025 18:06
Copy link
Collaborator

@lahm86 lahm86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is still an issue in slinc.tr2 room 18 with animated on, but maybe it's just a bad texture to begin with? Not sure what it's like in-game.

@chreden chreden disabled auto-merge October 17, 2025 20:39
@chreden chreden enabled auto-merge (squash) October 17, 2025 20:41
@chreden chreden merged commit ebfefc7 into master Oct 17, 2025
1 check passed
@chreden chreden deleted the issue/1505 branch October 17, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: texture bleeding in Lost Artefact

2 participants