From cf95a93549b83c6bddf0268f4ccb91c8854c8f2d Mon Sep 17 00:00:00 2001 From: Ash Tyndall Date: Thu, 20 Oct 2011 21:23:44 +0800 Subject: [PATCH] --- helper.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helper.c b/helper.c index 5c82e41..20ce8b5 100644 --- a/helper.c +++ b/helper.c @@ -261,10 +261,11 @@ void drawSquare(int recurseLevel, float x1, float z1, float x2, float z2) { else glColor3f(0.0f,0.0f,0.0f); //black glBegin(GL_QUADS); - glVertex3f( x*SizeX,0.0, y*SizeY); - glVertex3f((x+1)*SizeX,0.0, y*SizeY); + glVertex3f((x+1)*SizeX,0.0, (y+1)*SizeY); glVertex3f( x*SizeX,0.0, (y+1)*SizeY); + glVertex3f( x*SizeX,0.0, y*SizeY); + glVertex3f((x+1)*SizeX,0.0, y*SizeY); glEnd(); } -- 2.20.1