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; }