X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Ffg_geometry.c;h=aa2439ee7903a116e4d274c24eee7db3a1817565;hb=6a60b56aaf6dc5d9b0d2dd81b20a568e74232a43;hp=3463723f869559c97ce04cef45e964500d598811;hpb=9acd72b9fba35a42b91308c77384489191d471dc;p=freeglut diff --git a/src/fg_geometry.c b/src/fg_geometry.c index 3463723..aa2439e 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -478,8 +478,8 @@ static void fghGenerateNormalVisualization(GLfloat *vertices, GLfloat *normals, GLushort *vertIdxs, GLsizei numParts, GLsizei numVertIdxsPerPart) { GLushort i,j; - /* calc number of vertices to generate, allocate. TODO: FREE again after draw! - * two for each vertex in the input shape + /* calc number of vertices to generate, allocate. Must be freed by caller + * We do the free at the end of fghDrawNormalVisualization11/fghDrawNormalVisualization20 */ if (!vertIdxs) numNormalVertices = numVertices * 2;