projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added Nigel's suggested code to clear all but the destroy callback early
[freeglut]
/
src
/
freeglut_geometry.c
diff --git
a/src/freeglut_geometry.c
b/src/freeglut_geometry.c
index
81065a6
..
83715bb
100644
(file)
--- a/
src/freeglut_geometry.c
+++ b/
src/freeglut_geometry.c
@@
-29,8
+29,6
@@
#include "config.h"
#endif
#include "config.h"
#endif
-#define G_LOG_DOMAIN "freeglut-geometry"
-
#include "../include/GL/freeglut.h"
#include "freeglut_internal.h"
#include "../include/GL/freeglut.h"
#include "freeglut_internal.h"
@@
-230,9
+228,9
@@
void FGAPIENTRY glutSolidSphere( GLdouble dRadius, GLint slices, GLint stacks )
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
- radius * *(row + 3 * i + 2)
- );
-
+ radius * *(row + 3 * i + 2)
+ );
+
phi += dphi;
}
phi += dphi;
}
@@
-263,8
+261,8
@@
void FGAPIENTRY glutSolidSphere( GLdouble dRadius, GLint slices, GLint stacks )
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
- radius * *(row + 3 * i + 2)
- );
+ radius * *(row + 3 * i + 2)
+ );
glNormal3dv( next + i * 3 );
glVertex3d(
glNormal3dv( next + i * 3 );
glVertex3d(
@@
-300,8
+298,8
@@
void FGAPIENTRY glutSolidSphere( GLdouble dRadius, GLint slices, GLint stacks )
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
glVertex3d(
radius * *(row + 3 * i + 0),
radius * *(row + 3 * i + 1),
- radius * *(row + 3 * i + 2)
- );
+ radius * *(row + 3 * i + 2)
+ );
}
glEnd();
}
glEnd();