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