Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

gpui/blade: add alpha handling for non-rounded quads (#11461)

jansold6a633041907
diff --git a/crates/gpui/src/platform/blade/shaders.wgsl b/crates/gpui/src/platform/blade/shaders.wgsl
index 0cc11e88a98..4dff403d899 100644
--- a/crates/gpui/src/platform/blade/shaders.wgsl
+++ b/crates/gpui/src/platform/blade/shaders.wgsl
@@ -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;