[mutter/gbsneto/graphene-frustrum: 9/26] cluter/stage: Use 1.0 for z-near
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene-frustrum: 9/26] cluter/stage: Use 1.0 for z-near
- Date: Tue, 13 Oct 2020 19:29:53 +0000 (UTC)
commit ac1afb52522fa7daeaaf418f2f7fe78850fa22b6
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Oct 11 13:27:46 2020 -0300
cluter/stage: Use 1.0 for z-near
It doesn't actually matter, since we don't really have cases where we
cross this value, but it's enough to prevent catastrophic cancellation
due to very small float numbers.
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1489
clutter/clutter/clutter-stage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index c9680388b6..2f362f29c5 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -2797,7 +2797,7 @@ clutter_stage_update_view_perspective (ClutterStage *stage)
perspective = priv->perspective;
perspective.fovy = 60.0; /* 60 Degrees */
- perspective.z_near = 0.1;
+ perspective.z_near = 1.0;
perspective.aspect = priv->viewport[2] / priv->viewport[3];
z_2d = calculate_z_translation (perspective.z_near);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]