mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
gl renderer: handle cross-fade nodes with invisible children
This commit is contained in:
parent
77f8245c0c
commit
f80a341b4f
@ -2155,14 +2155,24 @@ render_cross_fade_node (GskGLRenderer *self,
|
||||
start_node,
|
||||
&start_region, &is_offscreen1,
|
||||
FORCE_OFFSCREEN | RESET_CLIP | RESET_OPACITY))
|
||||
g_assert_not_reached ();
|
||||
{
|
||||
gsk_gl_renderer_add_render_ops (self, end_node, builder);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!add_offscreen_ops (self, builder,
|
||||
&node->bounds,
|
||||
end_node,
|
||||
&end_region, &is_offscreen2,
|
||||
FORCE_OFFSCREEN | RESET_CLIP | RESET_OPACITY))
|
||||
g_assert_not_reached ();
|
||||
{
|
||||
load_vertex_data_with_region (ops_draw (builder, NULL),
|
||||
node,
|
||||
builder,
|
||||
&start_region,
|
||||
TRUE);
|
||||
return;
|
||||
}
|
||||
|
||||
ops_set_program (builder, &self->cross_fade_program);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user