Skip to content

GradientComponent: Fix blending not being enabled #164

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

Merged
merged 1 commit into from
Apr 10, 2025

Conversation

Johni0702
Copy link
Contributor

This call was accidentally dropped in f9c95e8#diff-bc7125e63fa8e1fe130c0591fecb4078dad770ace6f613ec4ce3cb9729c8ee98L126, breaking translucent GradientComponents on versions prior to 1.21.5 unless blending happens to already be enabled.

UIText always enables blending but does not disable it (MC's font renderer itself only disables it on more modern versions, not sure where the cut-off is but 1.12.2 still leaves it enabled), and one of out two remaining GradientComponent we use in Essential (we've mostly switched to GradientEffect) is on top of text, hence why this wasn't noticed immediately.

Linear: EM-3177

@Johni0702 Johni0702 requested a review from DJtheRedstoner April 9, 2025 10:25
@Johni0702 Johni0702 merged commit 73fa922 into master Apr 10, 2025
1 check passed
@Johni0702 Johni0702 deleted the fix/gradient-component-blending branch April 10, 2025 12:29
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