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 Color::as_rgba_linear for Color::Lcha #8040

Merged
merged 2 commits into from
Mar 11, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add regression test comment for #8040
Co-authored-by: James Liu <contact@jamessliu.com>
  • Loading branch information
payload and james7132 authored Mar 11, 2023
commit b3f3885dc012420fa975dd7f17ad7eab478844ce
1 change: 1 addition & 0 deletions crates/bevy_render/src/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,7 @@ mod tests {
assert_eq!(starting_color * transformation, mutated_color,);
}

// regression test for https://github.com/bevyengine/bevy/pull/8040
#[test]
fn convert_to_rgba_linear() {
let rgba = Color::rgba(0., 0., 0., 0.);
Expand Down