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

Comparing ray/src/px/pcond2.c (file contents):
Revision 3.12 by schorsch, Sun Mar 28 20:33:14 2004 UTC vs.
Revision 3.13 by greg, Mon Nov 8 15:50:59 2004 UTC

# Line 115 | Line 115 | firstscan(void)                                /* return first processed scanline
115                          comprgb2rgbWBmat(mbcond.cmat, inprims, outprims);
116                  else
117                          compxyz2rgbWBmat(mbcond.cmat, outprims);
118 <        if (what2do&DO_ACUITY)
119 <                initacuity();
118 >        if (what2do&DO_ACUITY && !initacuity()) {
119 >                fprintf(stderr, "%s: warning - cannot initialize acuity pass\n",
120 >                                progname);
121 >                what2do &= ~DO_ACUITY;
122 >        }
123          scanbuf = (COLOR *)malloc(scanlen(&inpres)*sizeof(COLOR));
124          if (scanbuf == NULL)
125                  syserror("malloc");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines