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

Comparing ray/src/rt/rxtrace.cpp (file contents):
Revision 2.3 by greg, Tue Apr 30 23:16:23 2024 UTC vs.
Revision 2.5 by greg, Thu May 2 22:10:43 2024 UTC

# Line 236 | Line 236 | rtrace(                                /* trace rays from stdin or file */
236                  pending |= (n > 1);     // time to flush output?
237                  bool    atZero = IsZeroVec(ivbuf[2*n-1]);
238                  if (pending & (atZero | (n == flushIntvl))) {
239 <                        if (!myRTmanager.FlushQueue())
239 >                        if (myRTmanager.FlushQueue() <= 0)
240                                  error(USER, "ray flush error");
241                          fflush(stdout);
242                          pending = false;
# Line 250 | Line 250 | rtrace(                                /* trace rays from stdin or file */
250          if (vcount)
251                  error(WARNING, feof(inpfp) ? "unexpected EOF on input" :
252                                  "input read error");
253 <        if (fflush(stdout) < 0)
254 <                error(SYSTEM, "write error");
253 >        if (myRTmanager.FlushQueue() < 0 || fflush(stdout) < 0)
254 >                error(SYSTEM, "final flush error");
255          if (fname != NULL) {
256                  fclose(inpfp);
257                  inpfp = NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines