(no commit message)
authorAsh Tyndall <git@atyndall.net>
Thu, 20 Oct 2011 13:23:44 +0000 (21:23 +0800)
committerAsh Tyndall <git@atyndall.net>
Thu, 20 Oct 2011 13:23:44 +0000 (21:23 +0800)
helper.c

index 5c82e41..20ce8b5 100644 (file)
--- 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();
                }
        

UCC git Repository :: git.ucc.asn.au