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().
This commit is contained in:
Georges Basile Stavracas Neto 2018-11-08 19:33:46 -02:00
parent 605f35dd25
commit dd82fbebf6
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385

View File

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