ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/bsdf_t.c
(Generate patch)

Comparing ray/src/common/bsdf_t.c (file contents):
Revision 3.34 by greg, Sun Mar 23 19:24:11 2014 UTC vs.
Revision 3.36 by greg, Tue Nov 11 23:33:21 2014 UTC

# Line 517 | Line 517 | build_scaffold(float val, const double *cmin, double c
517                  sp->wmax = wid;
518          if (sp->alen >= sp->nall) {     /* need more space? */
519                  struct outdir_s *ndarr;
520 <                sp->nall += 1024;
520 >                sp->nall = (int)(1.5*sp->nall) + 256;
521                  ndarr = (struct outdir_s *)realloc(sp->darr,
522                                          sizeof(struct outdir_s)*sp->nall);
523                  if (ndarr == NULL) {
# Line 721 | Line 721 | SDqueryTreProjSA(double *psa, const FVECT v1, const RR
721                                          /* get projected solid angle(s) */
722          if (v2 != NULL) {
723                  const SDTre     *sdt = (SDTre *)sdc->dist;
724 <                double          hcube[SD_MAXDIM];
724 >                double          hcube[SD_MAXDIM+1];
725                  if (SDqueryTre(sdt, v1, v2, hcube) < 0) {
726                          strcpy(SDerrorDetail, "Bad call to SDqueryTreProjSA");
727                          return SDEinternal;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines