one more small cleanup
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1263 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
98ca02122b
commit
b5cfa418b6
@ -1376,7 +1376,7 @@ static void fghCone( double base, double height, GLint slices, GLint stacks, GLb
|
|||||||
* bunch for each slice.
|
* bunch for each slice.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
stackIdx = malloc(slices*(stacks+1)*sizeof(GLushort));
|
stackIdx = malloc(slices*stacks*sizeof(GLushort));
|
||||||
sliceIdx = malloc(slices*2 *sizeof(GLushort));
|
sliceIdx = malloc(slices*2 *sizeof(GLushort));
|
||||||
if (!(stackIdx) || !(sliceIdx))
|
if (!(stackIdx) || !(sliceIdx))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user