Skip to content

Commit

Permalink
fix: as_rgba_linear used wrong variant (bevyengine#3192)
Browse files Browse the repository at this point in the history
# Objective

as_rgba_linear used wrong variant

## Solution

Fixed it.
  • Loading branch information
molikto authored and HackerFoo committed Nov 26, 2021
1 parent 89a0ec1 commit 9705eb0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ impl Color {
green,
blue,
alpha,
} => Color::Rgba {
} => Color::RgbaLinear {
red: red.nonlinear_to_linear_srgb(),
green: green.nonlinear_to_linear_srgb(),
blue: blue.nonlinear_to_linear_srgb(),
Expand Down
2 changes: 1 addition & 1 deletion pipelined/bevy_render2/src/color/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ impl Color {
green,
blue,
alpha,
} => Color::Rgba {
} => Color::RgbaLinear {
red: red.nonlinear_to_linear_srgb(),
green: green.nonlinear_to_linear_srgb(),
blue: blue.nonlinear_to_linear_srgb(),
Expand Down

0 comments on commit 9705eb0

Please sign in to comment.