[gnome-shell/gnome-3-38] blur-effect: Ensure float are used explictly
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gnome-3-38] blur-effect: Ensure float are used explictly
- Date: Wed, 10 Mar 2021 15:06:05 +0000 (UTC)
commit 2fbd8e61cf16aaa09648dd822e13627047f10f96
Author: Frederic Crozat <fcrozat suse com>
Date: Wed Mar 10 15:29:00 2021 +0100
blur-effect: Ensure float are used explictly
ceil(int) doesn't exist, we need to use an explicit float to prevent
error when shader is compiled.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1750>
src/shell-blur-effect.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shell-blur-effect.c b/src/shell-blur-effect.c
index ca645112a6..fca4d011ca 100644
--- a/src/shell-blur-effect.c
+++ b/src/shell-blur-effect.c
@@ -99,7 +99,7 @@ static const gchar *gaussian_blur_glsl =
" vec4 ret = texture2D (cogl_sampler, uv) * gauss_coefficient.x; \n"
" gauss_coefficient.xy *= gauss_coefficient.yz; \n"
" \n"
-" int n_steps = int (ceil (3 * sigma)); \n"
+" int n_steps = int (ceil (3.0 * sigma)); \n"
" \n"
" for (int i = 1; i < n_steps; i += 2) { \n"
" float coefficient_subtotal = gauss_coefficient.x; \n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]