From 9d2914474c94988c2c797dbaf7630625b0d58d25 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 7 Dec 2011 12:16:58 +0900 Subject: [PATCH] Fix the edge vectors when bounding the portal points. --- libs/models/test/testclip.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/models/test/testclip.c b/libs/models/test/testclip.c index ace754872..b860da690 100644 --- a/libs/models/test/testclip.c +++ b/libs/models/test/testclip.c @@ -308,6 +308,8 @@ run_test (test_t *test) p->portal->winding->points[j][2] = bound (-8192, p->portal->winding->points[j][2], 8192); } + FreeWinding (p->portal->edges); + p->portal->edges = WindingVectors (p->portal->winding, 0); for (j = 0; j < 2; j++) { int found = 0;