Fixing bug report 3106347, 'Incorrect normals for glutSolidCone' -- thank you Nigel.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@881 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
fayjf 2011-01-23 04:25:33 +00:00
parent 28fbb2e489
commit 51d3ffb2e6

View File

@ -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 );
}