* clutter/clutter-main.c: (_clutter_do_pick): disable dithering

when painting in pick mode.
This commit is contained in:
Øyvind Kolås 2007-10-31 15:38:18 +00:00
parent ce0dd69b09
commit 60a66695c6
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2007-10-31 Øyvind Kolås <pippin@o-hand.com>
* clutter/clutter-main.c: (_clutter_do_pick): disable dithering
when painting in pick mode.
2007-10-31 Matthew Allum <mallum@openedhand.com> 2007-10-31 Matthew Allum <mallum@openedhand.com>
* clutter/clutter-score.c: * clutter/clutter-score.c:

View File

@ -209,6 +209,9 @@ _clutter_do_pick (ClutterStage *stage,
cogl_paint_init (&white); cogl_paint_init (&white);
cogl_enable (0); 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 /* Render the entire scence in pick mode - just single colored silhouette's
* are drawn offscreen (as we never swap buffers) * are drawn offscreen (as we never swap buffers)
*/ */
@ -223,6 +226,7 @@ _clutter_do_pick (ClutterStage *stage,
* could be nicer. * could be nicer.
*/ */
glFinish(); glFinish();
glEnable (GL_DITHER);
glReadPixels(x, viewport[3] - y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel); glReadPixels(x, viewport[3] - y, 1, 1, GL_RGBA, GL_UNSIGNED_BYTE, pixel);