[gtk/wip/chergert/glproto: 431/526] this is always non-null
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/glproto: 431/526] this is always non-null
- Date: Tue, 16 Feb 2021 01:14:37 +0000 (UTC)
commit eba3bc12c72404808c4c98e5a2c239ec51831151
Author: Christian Hergert <chergert redhat com>
Date: Wed Feb 3 00:12:19 2021 -0800
this is always non-null
gsk/next/gskglrenderjob.c | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/gsk/next/gskglrenderjob.c b/gsk/next/gskglrenderjob.c
index 6916bcdb84..5b6e03acdf 100644
--- a/gsk/next/gskglrenderjob.c
+++ b/gsk/next/gskglrenderjob.c
@@ -723,15 +723,12 @@ gsk_gl_render_job_node_overlaps_clip (GskGLRenderJob *job,
GskRenderNode *node)
{
const GskRoundedRect *clip = gsk_gl_render_job_get_clip (job);
+ graphene_rect_t transformed_bounds;
- if (clip != NULL)
- {
- graphene_rect_t transformed_bounds;
- gsk_gl_render_job_transform_bounds (job, &node->bounds, &transformed_bounds);
- return rect_intersects (&clip->bounds, &transformed_bounds);
- }
+ g_assert (clip != NULL);
- return TRUE;
+ gsk_gl_render_job_transform_bounds (job, &node->bounds, &transformed_bounds);
+ return rect_intersects (&clip->bounds, &transformed_bounds);
}
/* load_vertex_data_with_region */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]