diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-06-11 16:55:20 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2012-06-11 16:55:20 +0200 |
commit | a6691c938aace6d827e042fff9b1907fb11f36f7 (patch) | |
tree | 62d8318cece9af72f4a017d8ab33591add16a6ef | |
parent | 1f0b4dc3cc2871332decc1090364c8f330356d40 (diff) | |
download | clutter-a6691c938aace6d827e042fff9b1907fb11f36f7.tar.gz |
Remove use of the deprecated function cogl_get_bitmasks
Instead, use the cogl_framebuffer_get_*_bits functions.
-rw-r--r-- | clutter/clutter-main.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index be07b7f42..f5bf3190c 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -604,10 +604,12 @@ _clutter_id_to_color (guint id_, if (ctx->fb_g_mask == 0) { + CoglFramebuffer *framebuffer = cogl_get_draw_framebuffer (); + /* Figure out framebuffer masks used for pick */ - cogl_get_bitmasks (&ctx->fb_r_mask, - &ctx->fb_g_mask, - &ctx->fb_b_mask, NULL); + ctx->fb_r_mask = cogl_framebuffer_get_red_bits (framebuffer); + ctx->fb_g_mask = cogl_framebuffer_get_green_bits (framebuffer); + ctx->fb_b_mask = cogl_framebuffer_get_blue_bits (framebuffer); ctx->fb_r_mask_used = ctx->fb_r_mask; ctx->fb_g_mask_used = ctx->fb_g_mask; |