[clutter/tomeu/cogl2: 1/2] Remove use of the deprecated function cogl_get_bitmasks



commit a6691c938aace6d827e042fff9b1907fb11f36f7
Author: Tomeu Vizoso <tomeu vizoso collabora com>
Date:   Mon Jun 11 16:55:20 2012 +0200

    Remove use of the deprecated function cogl_get_bitmasks
    
    Instead, use the cogl_framebuffer_get_*_bits functions.

 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 be07b7f..f5bf319 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;



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