gsk: Fix a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Thu, 2 Feb 2023 16:10:09 +0000 (17:10 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 2 Feb 2023 16:15:28 +0000 (17:15 +0100)
gsk/gl/gskglcommandqueue.c

index 640b87bf121fb7a4f375f4da026ffb999db72574..8a1f9c84b0c1d47d9eb79793cf0be0f1e417350b 100644 (file)
@@ -956,7 +956,7 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
                               guint                 default_framebuffer)
 {
   G_GNUC_UNUSED guint count = 0;
-  graphene_rect_t scissor_test = { 0, };
+  graphene_rect_t scissor_test = GRAPHENE_RECT_INIT (0, 0, 0, 0);
   gboolean has_scissor = scissor != NULL;
   gboolean scissor_state = -1;
   guint program = 0;