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

VideoCommon: Fix IsDualSrc check for dst blend factors #10868

Merged
merged 1 commit into from Jul 23, 2022

Conversation

TellowKrinkle
Copy link
Contributor

Small fix for #10747

We don't use dual source blend for SrcColor and InvSrcColor, only SrcAlpha and InvSrcAlpha.

Fixes gpus using the BUG_BROKEN_DUAL_SOURCE_BLENDING bug on games that draw using SrcColor as a blend factor without using any of the SrcAlpha-based factors.

Found this after I made the same mistake in the Metal renderer. Don't know what games it affects (if any), as the game that broke in Metal (Mario Sunshine) also used Src1Alpha as its SrcBlendFactor (and therefore wouldn't be affected here).

Copy link
Member

@OatmealDome OatmealDome left a comment

Choose a reason for hiding this comment

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

Untested, code LGTM

@JosJuice JosJuice merged commit e5a177e into dolphin-emu:master Jul 23, 2022
11 checks passed
@TellowKrinkle TellowKrinkle deleted the UsesDSBFix branch July 23, 2022 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants