X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_geometry.c;h=b41b5b766bfdc5022915eb57a9f0efbae99e84a5;hb=81414e3bfb81f912cbb88f7f88fee8edacf5e969;hp=3c7a835a6ce02e9b999fdffc33dd99021d732bd6;hpb=09070646b28804f0a700bd10b6caf8d606712d2c;p=freeglut diff --git a/src/freeglut_geometry.c b/src/freeglut_geometry.c index 3c7a835..b41b5b7 100644 --- a/src/freeglut_geometry.c +++ b/src/freeglut_geometry.c @@ -1096,7 +1096,7 @@ void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], G glEnd () ; } } - else + else if ( num_levels > 0 ) { GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */ num_levels -- ; @@ -1135,7 +1135,7 @@ void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3], glEnd () ; } - else + else if ( num_levels > 0 ) { GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */ num_levels -- ;