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

GPU: Fix simulating logicop with blend and shader #16024

Merged
merged 2 commits into from
Sep 14, 2022

Conversation

unknownbrackets
Copy link
Collaborator

In Brave Story, we would set up a subtract blend for the logic op simulation... and then decide to not simulate just using blending, but instead decide to use the shader. However, this left the subtract blending and made things weird.

This moves changes to the blend state to the end, after we've made the final decision.

-[Unknown]

We only need to do it in the shader, if we're doing it in the shader.
This is now causing crashes and should be allowed.
@hrydgard
Copy link
Owner

Oops, good fix and cleanup.

@hrydgard hrydgard merged commit cf2ad5c into hrydgard:master Sep 14, 2022
@hrydgard hrydgard added the GE emulation Backend-independent GPU issues label Sep 14, 2022
@unknownbrackets unknownbrackets deleted the logicop-simulate branch September 14, 2022 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants