mirror of
https://github.com/brl/mutter.git
synced 2025-02-17 05:44:08 +00:00
[actor] Use the right vertex
The vertex that should be used by the apply_relative_transform is the one passed in as const, and the result should be placed inside the non-const ClutterVertext. Currently, we are using the latter, and thus the function is completely useless.
This commit is contained in:
parent
ae2a861a0b
commit
b2ab2b9535
@ -1813,9 +1813,9 @@ clutter_actor_apply_relative_transform_to_point (ClutterActor *self,
|
|||||||
g_return_if_fail (point != NULL);
|
g_return_if_fail (point != NULL);
|
||||||
g_return_if_fail (vertex != NULL);
|
g_return_if_fail (vertex != NULL);
|
||||||
|
|
||||||
x = vertex->x;
|
x = point->x;
|
||||||
y = vertex->y;
|
y = point->y;
|
||||||
z = vertex->z;
|
z = point->z;
|
||||||
w = 1.0;
|
w = 1.0;
|
||||||
|
|
||||||
/* First we tranform the point using the OpenGL modelview matrix */
|
/* First we tranform the point using the OpenGL modelview matrix */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user