diff options
author | Simon Rettberg | 2019-07-30 16:07:15 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-30 16:07:15 +0200 |
commit | 813ac136e48f60d4c2b13e808107870dafcc4d52 (patch) | |
tree | 396a6c98276f6e9a04216933daebdf3af7b81d46 /hacks/glx/quickhull.c | |
parent | Flush X events before locking if we have an external ungrab command (diff) | |
parent | Update to 5.43 (diff) | |
download | xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.gz xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.tar.xz xscreensaver-813ac136e48f60d4c2b13e808107870dafcc4d52.zip |
Merge branch 'master' into openslx (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]; |