forked from AuroraMiddleware/gtk
gl renderer: Ignore nodes with nan bounds
This can happen for certain transform nodes. The transform node's child's bounds are fine, but the transform node bounds are all nan. Just ignore those bounds since we can't meaningfully render them anyway.
This commit is contained in:
parent
bbd4e2f60d
commit
416a4cf5ea
@ -2442,7 +2442,8 @@ gsk_gl_renderer_add_render_ops (GskGLRenderer *self,
|
|||||||
|
|
||||||
/* This can still happen, even if the render nodes are created using
|
/* This can still happen, even if the render nodes are created using
|
||||||
* GtkSnapshot, so let's juse be safe. */
|
* GtkSnapshot, so let's juse be safe. */
|
||||||
if (node->bounds.size.width == 0.0f || node->bounds.size.height == 0.0f)
|
if (node->bounds.size.width == 0.0f || node->bounds.size.height == 0.0f ||
|
||||||
|
isnan (node->bounds.size.width) || isnan (node->bounds.size.height))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
/* Check whether the render node is entirely out of the current
|
/* Check whether the render node is entirely out of the current
|
||||||
|
Loading…
Reference in New Issue
Block a user