1
0
Fork 0

Invert the check for whether to clip the pick

In 965907deb3 the picking was changed to render the full stage
instead of a single pixel whenever picking is performed more than once
between paints. However the condition in the if-statement was
backwards so it would end up always doing a full stage render.
This commit is contained in:
Neil Roberts 2010-08-23 11:36:33 +01:00
parent ddd08ba723
commit 66018a7035

View file

@ -666,7 +666,7 @@ _clutter_do_pick (ClutterStage *stage,
/* If we are seeing multiple picks per frame that means the scene is static
* so we promote to doing a non-scissored pick render so that all subsequent
* picks for the same static scene won't require additional renders */
if (context->picks_per_frame >= 2)
if (context->picks_per_frame < 2)
{
if (G_LIKELY (!(clutter_pick_debug_flags &
CLUTTER_DEBUG_DUMP_PICK_BUFFERS)))