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

[F3D Bleed] Fix rendermode not being reverted #462

Closed
wants to merge 1 commit into from

Conversation

Lilaa3
Copy link
Collaborator

@Lilaa3 Lilaa3 commented Sep 15, 2024

We cannot just assume that othermodeh or othermodel are always setting the same bits, so instead we write the diff of the current cmd to the one already in the reset dict, this means that if a material sets rendermode and another sets alpha compare (for example) it will still revert the rendermode because those bits will be carried over in the reset dict

@Lilaa3 Lilaa3 added bug Something isn't working f3d Has to do with the "f3d" code common to all games labels Sep 15, 2024
@Lilaa3
Copy link
Collaborator Author

Lilaa3 commented Sep 15, 2024

Thank you @Mineqwerty for bringing this up

We cannot just assume that othermodeh or othermodel are always setting the same bits, so instead we write the diff of the current cmd to the one already in the reset dict, this means that if a materials sets rendermode and another sets alpha compare (for example) it will still revert the rendermode because those bits will be carried over in the reset dict
@Lilaa3 Lilaa3 force-pushed the fix-bleed-othermode branch from 5f10451 to 3fc1522 Compare September 17, 2024 16:07
Lilaa3 added a commit to Lilaa3/fast64 that referenced this pull request Sep 17, 2024
We cannot just assume that othermodeh or othermodel are always setting the same bits, so instead we write the diff of the current cmd to the one already in the reset dict, this means that if a materials sets rendermode and another sets alpha compare (for example) it will still revert the rendermode because those bits will be carried over in the reset dict
@Lilaa3
Copy link
Collaborator Author

Lilaa3 commented Sep 18, 2024

Also done in #461 a bit better, closing

@Lilaa3 Lilaa3 closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working f3d Has to do with the "f3d" code common to all games
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant