[gtk/wip/chergert/glproto: 303/526] use floats for comparison
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 303/526] use floats for comparison
- Date: Tue, 16 Feb 2021 01:14:32 +0000 (UTC)
commit f0985510ce53eaa0c3dbb58da9692f7bd3dd7f08
Author: Christian Hergert <chergert redhat com>
Date: Tue Jan 26 11:50:33 2021 -0800
use floats for comparison
gsk/next/gskglrenderjob.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index cbcbf3e0ef..fc8f4afd5f 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -3254,9 +3254,9 @@ gsk_gl_render_job_visit_node (GskGLRenderJob *job,
GskRenderNode *end_node = gsk_cross_fade_node_get_end_child (node);
float progress = gsk_cross_fade_node_get_progress (node);
- if (progress <= 0)
+ if (progress <= 0.0f)
gsk_gl_render_job_visit_node (job, gsk_cross_fade_node_get_start_child (node));
- else if (progress >= 1 || equal_texture_nodes (start_node, end_node))
+ else if (progress >= 1.0f || equal_texture_nodes (start_node, end_node))
gsk_gl_render_job_visit_node (job, gsk_cross_fade_node_get_end_child (node));
else
gsk_gl_render_job_visit_cross_fade_node (job, node);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]