[mutter/gbsneto/explicit-framebuffer-preparations: 9/16] clutter-stage: Replace cogl_clear by cogl_framebuffer_clear



commit dd82fbebf62051113494f94fcb8c6019cb8235c7
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Thu Nov 8 19:33:46 2018 -0200

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]