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

Comparing ray/src/common/normcodec.c (file contents):
Revision 2.4 by greg, Mon Aug 26 23:33:24 2019 UTC vs.
Revision 2.5 by greg, Thu Nov 7 23:20:28 2019 UTC

# Line 20 | Line 20 | set_nc_defaults(NORMCODEC *ncp)
20          ncp->finp = stdin;
21          ncp->inpname = "<stdin>";
22          ncp->format = 'a';
23        ncp->swapped = 0;
23          ncp->res.rt = PIXSTANDARD;
24          if (!progname) progname = "norm_codec";
25   }
# Line 125 | Line 124 | check_decode_normals(NORMCODEC *ncp)
124   int
125   decode_normal_next(FVECT nrm, NORMCODEC *ncp)
126   {
127 <        int32   lastc;
128 <        FVECT   lastv;
129 <        int32   c = getint(4, ncp->finp);
127 >        static int32    lastc;
128 >        static FVECT    lastv;
129 >        int32           c = getint(4, ncp->finp);
130  
131          if (c == EOF && feof(ncp->finp))
132                  return -1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines