[mutter/gbsneto/graphene-frustrum: 6/16] fixup! clutter/stage: Use graphene_plane_t for clipping planes
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [mutter/gbsneto/graphene-frustrum: 6/16] fixup! clutter/stage: Use graphene_plane_t for clipping planes
- Date: Sat, 10 Oct 2020 14:31:20 +0000 (UTC)
commit 1e7729dcb2e725c447ba8fa733e50b1e9caa950e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Oct 9 18:15:00 2020 -0300
    fixup! clutter/stage: Use graphene_plane_t for clipping planes
 clutter/clutter/clutter-stage.c | 12 ------------
 1 file changed, 12 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 0b1b193468..deb462193a 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -729,18 +729,6 @@ _cogl_util_get_eye_planes_for_screen_poly (float                   *polygon,
                                        tmp_poly,
                                        n_vertices * 2);
 
-#define ROUND_TO_256THS(x) (roundf ((x) * 256) / 256)
-
-  for (i = 0; i < 2 * n_vertices; i++)
-    {
-      tmp_poly[i].x = ROUND_TO_256THS (tmp_poly[i].x);
-      tmp_poly[i].y = ROUND_TO_256THS (tmp_poly[i].y);
-      tmp_poly[i].z = ROUND_TO_256THS (tmp_poly[i].z);
-      tmp_poly[i].w = ROUND_TO_256THS (tmp_poly[i].w);
-    }
-
-#undef ROUND_TO_256THS
-
   /* XXX: It's quite ugly that we end up with these casts between
    * Vector4 types and CoglVector3s, it might be better if the
    * cogl_vector APIs just took pointers to floats.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]