Use the correct colour when clearing the stage for picking
The colour test for the stage in _clutter_do_pick checks for white to
determine whether the stage was picked but since 47db7af4d
we were
setting the colur to black. This usually worked because the id of the
default stage ends up being 0 which equates to black. However if a
second stage is created then it will always end up picking the first
stage.
This commit is contained in:
parent
1bb034fbd7
commit
c3e640e6e3
@ -492,7 +492,7 @@ _clutter_do_pick (ClutterStage *stage,
|
|||||||
cogl_clip_push_window_rectangle (x, y, 1, 1);
|
cogl_clip_push_window_rectangle (x, y, 1, 1);
|
||||||
|
|
||||||
cogl_disable_fog ();
|
cogl_disable_fog ();
|
||||||
cogl_color_set_from_4ub (&stage_pick_id, 0, 0, 0, 255);
|
cogl_color_set_from_4ub (&stage_pick_id, 255, 255, 255, 255);
|
||||||
cogl_clear (&stage_pick_id,
|
cogl_clear (&stage_pick_id,
|
||||||
COGL_BUFFER_BIT_COLOR |
|
COGL_BUFFER_BIT_COLOR |
|
||||||
COGL_BUFFER_BIT_DEPTH);
|
COGL_BUFFER_BIT_DEPTH);
|
||||||
|
Loading…
Reference in New Issue
Block a user