From 60a66695c6f75fb67e80c05506b7f48df534d788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 31 Oct 2007 15:38:18 +0000 Subject: [PATCH] * clutter/clutter-main.c: (_clutter_do_pick): disable dithering when painting in pick mode. --- ChangeLog | 5 +++++ clutter/clutter-main.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index a30fbcd3f..b87b7f7cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-10-31 Øyvind Kolås + + * clutter/clutter-main.c: (_clutter_do_pick): disable dithering + when painting in pick mode. + 2007-10-31 Matthew Allum * clutter/clutter-score.c: diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 41b911b8f..f980935a0 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -209,6 +209,9 @@ _clutter_do_pick (ClutterStage *stage, cogl_paint_init (&white); cogl_enable (0); + /* Disable dithering (if any) when doing the painting in pick mode */ + glDisable (GL_DITHER); + /* Render the entire scence in pick mode - just single colored silhouette's * are drawn offscreen (as we never swap buffers) */ @@ -223,6 +226,7 @@ _clutter_do_pick (ClutterStage *stage, * could be nicer. */ glFinish(); + glEnable (GL_DITHER); glReadPixels(x, viewport[3] - y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);