Skip to content

Commit

Permalink
gpui/blade: add alpha handling for non-rounded quads (#11461)
Browse files Browse the repository at this point in the history
Fixes
#10973 (comment)

Release Notes:

- N/A
  • Loading branch information
jansol committed May 6, 2024
1 parent da6a6ec commit d6a6330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/gpui/src/platform/blade/shaders.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ fn fs_quad(input: QuadVarying) -> @location(0) vec4<f32> {
quad.corner_radii.bottom_right == 0.0 && quad.border_widths.top == 0.0 &&
quad.border_widths.left == 0.0 && quad.border_widths.right == 0.0 &&
quad.border_widths.bottom == 0.0) {
return input.background_color;
return blend_color(input.background_color, 1.0);
}

let half_size = quad.bounds.size / 2.0;
Expand Down

0 comments on commit d6a6330

Please sign in to comment.