Skip to content
This repository has been archived by the owner on Dec 21, 2021. It is now read-only.

Commit

Permalink
Changed ordering of options to put caustic photon map ahead of -ab se…
Browse files Browse the repository at this point in the history
…tting
  • Loading branch information
Gregungory committed Sep 2, 2015
1 parent cf9d324 commit a2e4a07
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/util/rad.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef lint
static const char RCSid[] = "$Id: rad.c,v 2.120 2015/08/02 01:32:15 greg Exp $";
static const char RCSid[] = "$Id: rad.c,v 2.121 2015/09/02 18:59:26 greg Exp $";
#endif
/*
* Executive program for oconv, rpict and pfilt
Expand Down Expand Up @@ -806,6 +806,12 @@ renderopts( /* set rendering options */
{
char pmapf[256], *bw;

if (vdef(PGMAP)) {
bw = sskip2(vval(PGMAP), 2);
atos(pmapf, sizeof(pmapf), vval(PGMAP));
op = addarg(addarg(op, "-ap"), pmapf);
if (atoi(bw) > 0) op = addarg(op, bw);
}
switch(vscale(QUALITY)) {
case LOW:
lowqopts(op, po);
Expand All @@ -817,12 +823,6 @@ renderopts( /* set rendering options */
hiqopts(op, po);
break;
}
if (vdef(PGMAP)) {
bw = sskip2(vval(PGMAP), 2);
atos(pmapf, sizeof(pmapf), vval(PGMAP));
op = addarg(addarg(op, "-ap"), pmapf);
if (atoi(bw) > 0) op = addarg(op, bw);
}
if (vdef(PCMAP)) {
bw = sskip2(vval(PCMAP), 2);
atos(pmapf, sizeof(pmapf), vval(PCMAP));
Expand Down

0 comments on commit a2e4a07

Please sign in to comment.