Merge branch 'ngl-misc-fixes' into 'master'

Ngl misc fixes

See merge request GNOME/gtk!3267
This commit is contained in:
Christian Hergert 2021-03-07 15:59:59 +00:00
commit b2c1d6bc9b

View File

@ -2805,9 +2805,6 @@ gsk_ngl_render_job_visit_blur_node (GskNglRenderJob *job,
g_assert (blur_radius > 0);
if (node_is_invisible (child))
return;
key.pointer = node;
key.pointer_is_child = FALSE;
key.scale_x = job->scale_x;
@ -2906,9 +2903,6 @@ gsk_ngl_render_job_visit_color_matrix_node (GskNglRenderJob *job,
GskNglRenderOffscreen offscreen = {0};
float offset[4];
if (node_is_invisible (child))
return;
offscreen.bounds = &node->bounds;
offscreen.reset_clip = TRUE;
@ -3361,7 +3355,10 @@ gsk_ngl_render_job_visit_node (GskNglRenderJob *job,
case GSK_RADIAL_GRADIENT_NODE:
case GSK_REPEATING_RADIAL_GRADIENT_NODE:
gsk_ngl_render_job_visit_radial_gradient_node (job, node);
if (gsk_radial_gradient_node_get_n_color_stops (node) < MAX_GRADIENT_STOPS)
gsk_ngl_render_job_visit_radial_gradient_node (job, node);
else
gsk_ngl_render_job_visit_as_fallback (job, node);
break;
case GSK_REPEAT_NODE: