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:
parent
ddd08ba723
commit
66018a7035
1 changed files with 1 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue