* clutter/clutter-main.c: (_clutter_do_pick): disable dithering
when painting in pick mode.
This commit is contained in:
parent
ce0dd69b09
commit
60a66695c6
@ -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:
|
||||||
|
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user