projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle modifiers in MotionNotify events, too. This fixes bug #1227920
[freeglut]
/
src
/
freeglut_geometry.c
diff --git
a/src/freeglut_geometry.c
b/src/freeglut_geometry.c
index
c2d7bad
..
b41b5b7
100644
(file)
--- a/
src/freeglut_geometry.c
+++ b/
src/freeglut_geometry.c
@@
-25,10
+25,6
@@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-
#include <GL/freeglut.h>
#include "freeglut_internal.h"
#include <GL/freeglut.h>
#include "freeglut_internal.h"
@@
-1100,7
+1096,7
@@
void FGAPIENTRY glutWireSierpinskiSponge ( int num_levels, GLdouble offset[3], G
glEnd () ;
}
}
glEnd () ;
}
}
- else
+ else if ( num_levels > 0 )
{
GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */
num_levels -- ;
{
GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */
num_levels -- ;
@@
-1139,7
+1135,7
@@
void FGAPIENTRY glutSolidSierpinskiSponge ( int num_levels, GLdouble offset[3],
glEnd () ;
}
glEnd () ;
}
- else
+ else if ( num_levels > 0 )
{
GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */
num_levels -- ;
{
GLdouble local_offset[3] ; /* Use a local variable to avoid buildup of roundoff errors */
num_levels -- ;