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