[mutter] clutter/blur: Fix shader loop
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter/blur: Fix shader loop
- Date: Thu, 17 Dec 2020 13:48:14 +0000 (UTC)
commit 5fca8f231ae301643b9c320eb21403a1734a40f0
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 17 01:54:44 2020 -0300
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1646>
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 9a8153e8f9..abc8d3c147 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"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]