[mutter] clutter: Use non-deprecated pixel reading function when picking
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Use non-deprecated pixel reading function when picking
- Date: Thu, 15 Sep 2016 02:33:06 +0000 (UTC)
commit fb6b0de48b2487bb4a04cba27007d6ac9e0879fa
Author: Jonas Ådahl <jadahl gmail com>
Date: Fri Sep 9 18:03:37 2016 +0800
clutter: Use non-deprecated pixel reading function when picking
This wont fix anything, it just one small step away from using
deprecated cogl functions.
https://bugzilla.gnome.org/show_bug.cgi?id=770672
clutter/clutter/clutter-stage.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 1f0c3f8..aec68e7 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -1456,10 +1456,10 @@ _clutter_stage_do_pick_on_view (ClutterStage *stage,
used. The format is requested as pre-multiplied because Cogl
assumes that all pixels in the framebuffer are premultiplied so
it avoids a conversion. */
- cogl_read_pixels (read_x, read_y, 1, 1,
- COGL_READ_PIXELS_COLOR_BUFFER,
- COGL_PIXEL_FORMAT_RGBA_8888_PRE,
- pixel);
+ cogl_framebuffer_read_pixels (fb,
+ read_x, read_y, 1, 1,
+ COGL_PIXEL_FORMAT_RGBA_8888_PRE,
+ pixel);
if (G_UNLIKELY (clutter_pick_debug_flags & CLUTTER_DEBUG_DUMP_PICK_BUFFERS))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]