summaryrefslogtreecommitdiff
path: root/gsk/gl/gskglrenderer.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsk/gl/gskglrenderer.c')
-rw-r--r--gsk/gl/gskglrenderer.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 81b9302f6d..1b188fddfe 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -735,12 +735,7 @@ render_border_node (GskGLRenderer *self,
float h;
} sizes[4];
- if (widths[0] == widths[1] &&
- widths[0] == widths[2] &&
- widths[0] == widths[3] &&
- gdk_rgba_equal (&colors[0], &colors[1]) &&
- gdk_rgba_equal (&colors[0], &colors[2]) &&
- gdk_rgba_equal (&colors[0], &colors[3]))
+ if (gsk_border_node_get_uniform (node))
{
ops_set_program (builder, &self->programs->inset_shadow_program);
ops_set_inset_shadow (builder, transform_rect (self, builder, rounded_outline),