From dd82fbebf62051113494f94fcb8c6019cb8235c7 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Thu, 8 Nov 2018 19:33:46 -0200 Subject: [PATCH] clutter-stage: Replace cogl_clear by cogl_framebuffer_clear Another case of a simple and direct API translation. Instead of using the deprecated cogl_clear() function, replace it by the non-deprecated cogl_framebuffer_clear(). --- clutter/clutter/clutter-stage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c index 533663f09..5ee02dbfb 100644 --- a/clutter/clutter/clutter-stage.c +++ b/clutter/clutter/clutter-stage.c @@ -1500,7 +1500,7 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage, view_layout.x, view_layout.y, fb_scale); cogl_color_init_from_4ub (&stage_pick_id, 255, 255, 255, 255); - cogl_clear (&stage_pick_id, COGL_BUFFER_BIT_COLOR | COGL_BUFFER_BIT_DEPTH); + cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR | COGL_BUFFER_BIT_DEPTH, &stage_pick_id); /* Disable dithering (if any) when doing the painting in pick mode */ dither_enabled_save = cogl_framebuffer_get_dither_enabled (fb);