diff options
Diffstat (limited to 'test/shape.cxx')
| -rw-r--r-- | test/shape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/shape.cxx b/test/shape.cxx index b64067bbd..ac298767d 100644 --- a/test/shape.cxx +++ b/test/shape.cxx @@ -60,8 +60,8 @@ void shape_window::draw() { glClear(GL_COLOR_BUFFER_BIT); glColor3f(.5,.6,.7); glBegin(GL_POLYGON); - for (int i=0; i<sides; i++) { - double ang = i*2*M_PI/sides; + for (int j=0; j<sides; j++) { + double ang = j*2*M_PI/sides; glVertex3f(cos(ang),sin(ang),0); } glEnd(); |
