gsk: Robustness fix

I was seeing empty regions being passed as scissor.
This commit is contained in:
Matthias Clasen 2023-11-13 00:38:29 +01:00
parent 9423d6261a
commit e8894ad383

View File

@ -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;