projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0907064
)
Fixing a bug in the Sierpinski sponge code that made the application crash if called...
author
John F. Fay
<johnffay@nettally.com>
Wed, 22 Jun 2005 22:11:50 +0000
(22:11 +0000)
committer
John F. Fay
<johnffay@nettally.com>
Wed, 22 Jun 2005 22:11:50 +0000
(22:11 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@637
7f0cb862
-5218-0410-a997-
914c9d46530a
src/freeglut_geometry.c
patch
|
blob
|
history
diff --git
a/src/freeglut_geometry.c
b/src/freeglut_geometry.c
index
3c7a835
..
b41b5b7
100644
(file)
--- 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 -- ;