Do not use Fixed values with COGL
The COGL API expects floating point values, not fixed point ones.
This commit is contained in:
parent
7afc4310f6
commit
050c1e268d
@ -411,9 +411,9 @@ mutter_shaped_texture_pick (ClutterActor *actor,
|
|||||||
/* Paint the mask rectangle in the given color */
|
/* Paint the mask rectangle in the given color */
|
||||||
cogl_set_source_texture (priv->mask_texture);
|
cogl_set_source_texture (priv->mask_texture);
|
||||||
cogl_rectangle_with_texture_coords (0, 0,
|
cogl_rectangle_with_texture_coords (0, 0,
|
||||||
CLUTTER_UNITS_TO_FIXED (alloc.x2 - alloc.x1),
|
CLUTTER_UNITS_TO_FLOAT (alloc.x2 - alloc.x1),
|
||||||
CLUTTER_UNITS_TO_FIXED (alloc.y2 - alloc.y1),
|
CLUTTER_UNITS_TO_FLOAT (alloc.y2 - alloc.y1),
|
||||||
0, 0, CFX_ONE, CFX_ONE);
|
0, 0, 1, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user