From cc14f19ed34fb304f2fdee5b3ef34a34f307164e Mon Sep 17 00:00:00 2001 From: Tormod Haugland Date: Sun, 27 Apr 2014 10:34:32 +0200 Subject: [PATCH] Made test_conformity arrays static --- test/gtx/gtx_intersect.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/gtx/gtx_intersect.cpp b/test/gtx/gtx_intersect.cpp index 82d2aca8..8f8ff64e 100644 --- a/test/gtx/gtx_intersect.cpp +++ b/test/gtx/gtx_intersect.cpp @@ -19,11 +19,10 @@ int test_conformity() const int vertexCount = 100000; - glm::vec3** vertices = new glm::vec3*[vertexCount]; + glm::vec3 vertices[vertexCount][6]; for (int i = 0; i < vertexCount; ++i) { - vertices[i] = new glm::vec3[6]; vertices[i][0] = glm::vec3((float)(rand() % 1000)/100, (float)(rand() % 1000)/100,(float)(rand() % 1000)/100); vertices[i][1] = glm::vec3((float)(rand() % 1000)/100, (float)(rand() % 1000)/100,(float)(rand() % 1000)/100); vertices[i][2] = glm::vec3((float)(rand() % 1000)/100, (float)(rand() % 1000)/100,(float)(rand() % 1000)/100); @@ -73,7 +72,6 @@ int test_conformity() assert(intersects_line == intersects_line_tri); } - delete vertices; return Error; }