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

Comparing ray/src/util/radcompare.c (file contents):
Revision 2.21 by greg, Thu Aug 15 17:28:45 2019 UTC vs.
Revision 2.22 by greg, Sat Aug 24 02:22:02 2019 UTC

# Line 224 | Line 224 | color_check(COLOR c1, COLOR c2)
224   static int
225   norm_check(FVECT nv1, FVECT nv2)
226   {
227 <        double  max2 = nv1[2]*nv1[2];
227 >        double  max2 = nv1[2]*nv2[2];
228          int     imax = 2;
229          int     i = 2;
230                                          /* identify largest component */
231          while (i--) {
232 <                double  tm2 = nv1[i]*nv1[i];
232 >                double  tm2 = nv1[i]*nv2[i];
233                  if (tm2 > max2) {
234                          imax = i;
235                          max2 = tm2;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines