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

Comparing ray/src/px/pinterp.c (file contents):
Revision 2.47 by greg, Thu Aug 2 18:33:45 2018 UTC vs.
Revision 2.48 by greg, Thu Nov 7 23:20:28 2019 UTC

# Line 497 | Line 497 | addpicture(            /* add picture to output */
497          zin = (float *)malloc(scanlen(&tresolu)*sizeof(float));
498          if (zin == NULL)
499                  syserror(progname);
500 <        if ((zfd = open(zspec, O_RDONLY)) == -1) {
500 >        if ((zfd = open_float_depth(zspec, (long)tresolu.xr*tresolu.yr)) < 0) {
501                  double  zvalue;
502                  int     x;
503                  if (!isflt(zspec) || (zvalue = atof(zspec)) <= 0.0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines