diff options
author | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
commit | 6a32252403781b303d4ebd195932ce39c5b1c08e (patch) | |
tree | cd2f8b3c4052c1b575caf33c9983ae531fad9092 /hacks/glx/quickhull.c | |
parent | Remove android and OSX files (diff) | |
download | xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.gz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.xz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.zip |
Update to 5.43
Diffstat (limited to 'hacks/glx/quickhull.c')
-rw-r--r-- | hacks/glx/quickhull.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/hacks/glx/quickhull.c b/hacks/glx/quickhull.c index 4c46ca0..ff517db 100644 --- a/hacks/glx/quickhull.c +++ b/hacks/glx/quickhull.c @@ -1351,10 +1351,11 @@ qh_quickhull3d(qh_vertex_t const* vertices, unsigned int nvertices) } for (i = 0; i < context.nfaces; ++i) { + qh_half_edge_t e0, e1, e2; if (!context.valid[i]) { continue; } - qh_half_edge_t e0 = context.edges[context.faces[i].edges[0]]; - qh_half_edge_t e1 = context.edges[context.faces[i].edges[1]]; - qh_half_edge_t e2 = context.edges[context.faces[i].edges[2]]; + e0 = context.edges[context.faces[i].edges[0]]; + e1 = context.edges[context.faces[i].edges[1]]; + e2 = context.edges[context.faces[i].edges[2]]; m.vertices[m.nvertices++] = context.vertices[e0.to_vertex]; m.vertices[m.nvertices++] = context.vertices[e1.to_vertex]; |