Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple glitchy quads #1920

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

Jaklyy
Copy link
Contributor

@Jaklyy Jaklyy commented Dec 18, 2023

Fixes some buggy quads rendering improperly.
The correct tie breaker for two points with the same y is to render the earlier vertex, rather than the leftmost one.
Doesn't seem to break anything from testing, and I don't think it should, since the only thing this impacts is Xtop (unused?), YTop (should be identical), and VTop (only used for determining which vertex to start rendering a polygon at)
I left the bottom check unchanged because i couldn't find any similar incorrect behavior with it, and I figured no reason to change what isn't broken.

Example of fix:
image

hw prioritizes the earlier vertex instead of leftmost
@RSDuck RSDuck merged commit 54e87c9 into melonDS-emu:master Aug 1, 2024
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants