mirror of
https://github.com/brl/mutter.git
synced 2024-11-13 01:36:10 -05:00
4e94500a2a
The patches have been updated to apply cleanly. The patches for the g_warnings in clutter-actor.c have been removed because master now uses CLUTTER_UNITS_FORMAT so they aren't necessary. The clutter-units.h patch now sets CLUTTER_UNITS_FORMAT to 'f'.
14 lines
628 B
Diff
14 lines
628 B
Diff
diff --git a/clutter/clutter-texture.c b/clutter/clutter-texture.c
|
|
index b0b46e4..8a306e9 100644
|
|
--- a/clutter/clutter-texture.c
|
|
+++ b/clutter/clutter-texture.c
|
|
@@ -474,7 +474,7 @@ clutter_texture_set_fbo_projection (ClutterActor *self)
|
|
|
|
/* Set up a projection matrix so that the actor will be projected as
|
|
if it was drawn at its original location */
|
|
- tan_angle = tanf (COGL_ANGLE_FROM_DEGX (perspective.fovy / 2 * (G_PI/180.0)));
|
|
+ tan_angle = tanf ((perspective.fovy / 2) * (G_PI/180.0));
|
|
near_size = CLUTTER_FIXED_MUL (perspective.z_near, tan_angle);
|
|
|
|
cogl_frustum (CLUTTER_FIXED_MUL (tx_min, near_size),
|