From 6dc467167649e23e1fa776dadfe566066609df90 Mon Sep 17 00:00:00 2001 From: Istvan Petres Date: Tue, 21 May 2024 16:00:41 +0300 Subject: [PATCH] Fix GLX corner radis for the mask too --- src/backend/gl/shaders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/gl/shaders.c b/src/backend/gl/shaders.c index 111a86e058..492dadeb7a 100644 --- a/src/backend/gl/shaders.c +++ b/src/backend/gl/shaders.c @@ -93,7 +93,7 @@ const char masking_glsl[] = GLSL(330, vec2 maskcoord = texcoord - mask_offset; vec4 mask = texture2D(mask_tex, maskcoord / mask_size); if (mask_corner_radius != 0) { - vec2 inner_size = mask_size - vec2(mask_corner_radius) * 2.0f; + vec2 inner_size = mask_size - vec2(mask_corner_radius) * 2.0f - 1; float dist = mask_rectangle_sdf(maskcoord - mask_size / 2.0f, inner_size / 2.0f) - mask_corner_radius; if (dist > 0.0f) {