From 8ee5d611ce7eb724a108781b67cacbae6715abde Mon Sep 17 00:00:00 2001 From: "John F. Fay" Date: Sun, 1 Apr 2012 20:09:51 +0000 Subject: [PATCH] Removing the build errors and a build warning that crept in for MSVC 6.0. There remain the undefined functions "sinf" and "cosf". git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1231 7f0cb862-5218-0410-a997-914c9d46530a --- src/fg_geometry.c | 7 +++---- src/fg_init.c | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fg_geometry.c b/src/fg_geometry.c index eb96b92..312acfc 100644 --- a/src/fg_geometry.c +++ b/src/fg_geometry.c @@ -72,7 +72,9 @@ static void fghDrawGeometryWire20(GLfloat *vertices, GLfloat *normals, GLsizei n { GLuint vbo_coords, vbo_normals; GLuint numVertices = numFaces * numEdgePerFace; - + + int i; + if (numVertices > 0 && attribute_v_coord != -1) { fghGenBuffers(1, &vbo_coords); fghBindBuffer(FGH_ARRAY_BUFFER, vbo_coords); @@ -113,9 +115,6 @@ static void fghDrawGeometryWire20(GLfloat *vertices, GLfloat *normals, GLsizei n ); } - - int i; - /* Draw per face (TODO: could use glMultiDrawArrays if available) */ for (i=0; i