From 5fca8f231ae301643b9c320eb21403a1734a40f0 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 17 Dec 2020 01:54:44 -0300 Subject: [PATCH] clutter/blur: Fix shader loop We must iterate at least once, and i starts at 1, so use less-or-equal in the for-loop. Part-of: --- clutter/clutter/clutter-blur.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-blur.c b/clutter/clutter/clutter-blur.c index 9a8153e8f..abc8d3c14 100644 --- a/clutter/clutter/clutter-blur.c +++ b/clutter/clutter/clutter-blur.c @@ -86,7 +86,7 @@ static const char *gaussian_blur_glsl = " \n" " int n_steps = int (ceil (3 * sigma)); \n" " \n" -" for (int i = 1; i < n_steps; i += 2) { \n" +" for (int i = 1; i <= n_steps; i += 2) { \n" " float coefficient_subtotal = gauss_coefficient.x; \n" " gauss_coefficient.xy *= gauss_coefficient.yz; \n" " coefficient_subtotal += gauss_coefficient.x; \n"