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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.102 by greg, Fri Apr 16 16:31:35 2021 UTC vs.
Revision 2.103 by greg, Sun Apr 24 15:40:33 2022 UTC

# Line 166 | Line 166 | rtrace(                                /* trace rays from file */
166                  error(WARNING, "reducing number of processes to match flush interval");
167                  nproc = nextflush;
168          }
169        switch (outform) {
170        case 'a': putreal = puta; break;
171        case 'f': putreal = putf; break;
172        case 'd': putreal = putd; break;
173        case 'c':
174                if (outvals[1] || !strchr("vrx", outvals[0]))
175                        error(USER, "color format only with -ov, -or, -ox");
176                putreal = putrgbe; break;
177        default:
178                error(CONSISTENCY, "botched output format");
179        }
169          if (nproc > 1) {                /* start multiprocessing */
170                  ray_popen(nproc);
171                  ray_fifo_out = printvals;
# Line 241 | Line 230 | setrtoutput(void)                      /* set up output tables, return #c
230          if (!*vs)
231                  error(USER, "empty output specification");
232  
233 +        switch (outform) {      /* make sure (*putreal)() calls someone! */
234 +        case 'a': putreal = puta; break;
235 +        case 'f': putreal = putf; break;
236 +        case 'd': putreal = putd; break;
237 +        case 'c':
238 +                if (outvals[1] || !strchr("vrx", outvals[0]))
239 +                        error(USER, "color format only with -ov, -or, -ox");
240 +                putreal = putrgbe; break;
241 +        default:
242 +                error(CONSISTENCY, "botched output format");
243 +        }
244          castonly = 1;                   /* sets castonly as side-effect */
245          do
246                  switch (*vs) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines