From 27815f2cce37721ae1c524669c3e19cff8a50894 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 22 Feb 2009 03:39:40 +0000 Subject: Fixes for VS 2005. git-svn-id: http://svn.leocad.org/tags/leocad-0.75@741 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/debug.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'common/debug.cpp') diff --git a/common/debug.cpp b/common/debug.cpp index 1e56bb5..f1f8956 100644 --- a/common/debug.cpp +++ b/common/debug.cpp @@ -82,13 +82,13 @@ void RenderDebugPrimitives() glBegin(GL_QUADS); - for (i = 0; i < NumDebugQuads; i++) + for (int q = 0; q < NumDebugQuads; q++) { - glColor4fv((float*)&DebugQuads[i].color); - glVertex3fv((float*)&DebugQuads[i].pt1); - glVertex3fv((float*)&DebugQuads[i].pt2); - glVertex3fv((float*)&DebugQuads[i].pt3); - glVertex3fv((float*)&DebugQuads[i].pt4); + glColor4fv((float*)&DebugQuads[q].color); + glVertex3fv((float*)&DebugQuads[q].pt1); + glVertex3fv((float*)&DebugQuads[q].pt2); + glVertex3fv((float*)&DebugQuads[q].pt3); + glVertex3fv((float*)&DebugQuads[q].pt4); } glEnd(); -- cgit v1.2.3