mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-01 16:30:15 +00:00
gsk: Robustness fix
I was seeing empty regions being passed as scissor.
This commit is contained in:
parent
209a1a69cc
commit
93959ef7df
@ -1104,7 +1104,7 @@ gsk_gl_command_queue_execute (GskGLCommandQueue *self,
|
||||
(void *) G_STRUCT_OFFSET (GskGLDrawVertex, color2));
|
||||
|
||||
/* Setup initial scissor clip */
|
||||
if (scissor != NULL)
|
||||
if (scissor != NULL && cairo_region_num_rectangles (scissor) > 0)
|
||||
{
|
||||
cairo_rectangle_int_t r;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user