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

Comparing ray/src/rt/rtmain.c (file contents):
Revision 2.22 by greg, Wed Aug 7 05:10:09 2013 UTC vs.
Revision 2.23 by greg, Tue Feb 24 19:39:27 2015 UTC

# Line 17 | Line 17 | static const char      RCSid[] = "$Id$";
17   #include  "ambient.h"
18   #include  "random.h"
19   #include  "paths.h"
20 + #include  "pmapray.h"
21  
22   extern char     *progname;              /* global argv[0] */
23  
# Line 324 | Line 325 | main(int  argc, char  *argv[])
325                  fputformat(formstr(outform), stdout);
326                  putchar('\n');
327          }
328 <
328 >        
329 >        ray_init_pmap();     /* PMAP: set up & load photon maps */
330 >        
331          marksources();                  /* find and mark sources */
332  
333          setambient();                   /* initialize ambient calculation */
334 <
334 >        
335   #ifdef  PERSIST
336          if (persist) {
337                  fflush(stdout);
# Line 374 | Line 377 | runagain:
377                  goto runagain;
378          }
379   #endif
380 +
381 +        ray_done_pmap();           /* PMAP: free photon maps */
382 +        
383          quit(0);
384  
385   badopt:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines