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

Comparing ray/src/rt/pmapdump.c (file contents):
Revision 2.9 by rschregle, Sat Dec 9 18:40:43 2017 UTC vs.
Revision 2.11 by greg, Thu Aug 2 18:33:49 2018 UTC

# Line 75 | Line 75 | const RadianceDef radDefs [] = {
75  
76   int main (int argc, char** argv)
77   {
78 <   char           format [128];
78 >   char           format [MAXFMTLEN];
79     RREAL          rad, radScale = RADSCALE, extent, dumpRatio;
80     unsigned       arg, j, ptype, dim;
81     long           numSpheres = NSPHERES;
# Line 195 | Line 195 | int main (int argc, char** argv)
195        pm.numPrimary = getint(sizeof(pm.numPrimary), pmapFile);
196        while (pm.numPrimary-- > 0) {
197           /* Skip source index & incident dir */
198 <         getint(sizeof(pri.srcIdx) + sizeof(pri.dir), pmapFile);
198 >         getint(sizeof(pri.srcIdx), pmapFile);
199 > #ifdef PMAP_PRIMARYDIR
200 >         /* Skip primary incident dir */
201 >         getint(sizeof(pri.dir), pmapFile);        
202 > #endif        
203   #ifdef PMAP_PRIMARYPOS        
204           /* Skip primary hitpoint */
205           for (j = 0; j < 3; j++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines