projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b680ece
)
Fixing bug report 3106347, 'Incorrect normals for glutSolidCone' -- thank you Nigel.
author
John F. Fay
<johnffay@nettally.com>
Sun, 23 Jan 2011 04:25:33 +0000
(
04:25
+0000)
committer
John F. Fay
<johnffay@nettally.com>
Sun, 23 Jan 2011 04:25:33 +0000
(
04:25
+0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@881
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
0b17793
..
0f9f5c5
100644
(file)
--- a/
src/freeglut_geometry.c
+++ b/
src/freeglut_geometry.c
@@
-376,7
+376,7
@@
void FGAPIENTRY glutSolidCone( GLdouble base, GLdouble height, GLint slices, GLi
for(j=0; j<=slices; j++)
{
- glNormal3d(cost[j]*sinn, sint[j]*sinn, cosn);
+ glNormal3d(cost[j]*cosn, sint[j]*cosn, sinn);
glVertex3d(cost[j]*r0, sint[j]*r0, z0 );
glVertex3d(cost[j]*r1, sint[j]*r1, z1 );
}