From 66018a7035ccdc2422f8eef9a9523339fd6309be Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 23 Aug 2010 11:36:33 +0100 Subject: [PATCH] Invert the check for whether to clip the pick In 965907deb3f9e 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. --- clutter/clutter-main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 417d58027..91d187144 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -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)))