[gtk/wip/chergert/glproto] next: remove NaN check



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]