summaryrefslogtreecommitdiffstats
path: root/hacks/glx/quickhull.c
diff options
context:
space:
mode:
Diffstat (limited to 'hacks/glx/quickhull.c')
-rw-r--r--hacks/glx/quickhull.c7
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];