From 4d1af6500491bdc301b590916fd04f5d8ec6a2c2 Mon Sep 17 00:00:00 2001 From: Inconn <62788103+Inconn@users.noreply.github.com> Date: Sun, 26 Mar 2023 18:14:33 -0500 Subject: [PATCH] fix: remove 'f' suffixes from tex.frag to fix nvidia (#136) --- sway/desktop/shaders/tex.frag | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/shaders/tex.frag b/sway/desktop/shaders/tex.frag index 40320f9b..51a42c4f 100644 --- a/sway/desktop/shaders/tex.frag +++ b/sway/desktop/shaders/tex.frag @@ -56,7 +56,7 @@ void main() { vec2 corner_distance = min(gl_FragCoord.xy - position, size + position - gl_FragCoord.xy); if (max(corner_distance.x, corner_distance.y) < radius) { float d = radius - distance(corner_distance, vec2(radius)); - float smooth = smoothstep(-1.0f, 0.5f, d); + float smooth = smoothstep(-1.0, 0.5, d); gl_FragColor = mix(vec4(0), gl_FragColor, smooth); } }