mirror of
https://github.com/brl/mutter.git
synced 2025-02-02 14:53:03 +00:00
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.
This commit is contained in:
parent
ddd08ba723
commit
66018a7035
@ -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…
x
Reference in New Issue
Block a user