Skip to content

Commit

Permalink
Fix GLX corner radis for the mask too
Browse files Browse the repository at this point in the history
  • Loading branch information
pijulius authored May 21, 2024
1 parent 3d0515d commit 6dc4671
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/gl/shaders.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6dc4671

Please sign in to comment.