# | Line 558 | Line 558 | ssamp_poly(FVECT orig, SURF *sp, double x) | |
---|---|---|
558 | ||
559 | if (ptp == NULL) { /* need to triangulate */ | |
560 | ptp = (POLYTRIS *)malloc(sizeof(POLYTRIS) + | |
561 | < | sizeof(struct ptri)*(sp->nfargs/3 - 3)); |
561 | > | sizeof(struct ptri)*(sp->nfargs/3 - 1)); |
562 | if (ptp == NULL) | |
563 | goto memerr; | |
564 | if (sp->nfargs == 3) { /* simple case */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |