[mutter/gbsneto/graphene-frustrum: 32/49] 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: 32/49] cluter/stage: Use 1.0 for z-near
- Date: Fri, 16 Oct 2020 16:37:52 +0000 (UTC)
commit 78c648f947a952b6035371267f77a39ae4fc6511
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 26cc9e0e58..3f70202051 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]