[gtk/wip/chergert/glproto] next: remove NaN check
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto] next: remove NaN check
- Date: Tue, 23 Feb 2021 21:15:47 +0000 (UTC)
commit 9dd780e74570c2c3fbf9917066ebe849cc28931f
Author: Christian Hergert <chergert redhat com>
Date: Tue Feb 23 13:15:38 2021 -0800
next: remove NaN check
This wasn't able to be hit from anywhere I can find, so remove it per
code review.
gsk/next/gskglrenderjob.c | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index f9df1e4f77..bfba8a7a7b 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -191,19 +191,11 @@ init_full_texture_region (GskGLRenderOffscreen *offscreen)
offscreen->area.y2 = 1;
}
-static inline int
-_isnan_f (float x)
-{
- return x != x;
-}
-
static inline gboolean G_GNUC_PURE
node_is_invisible (const GskRenderNode *node)
{
return node->bounds.size.width == 0.0f ||
- node->bounds.size.height == 0.0f ||
- _isnan_f (node->bounds.size.width) ||
- _isnan_f (node->bounds.size.height);
+ node->bounds.size.height == 0.0f;
}
static inline void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]