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

Comparing ray/src/util/rmatrix.c (file contents):
Revision 2.89 by greg, Fri Apr 4 18:06:48 2025 UTC vs.
Revision 2.90 by greg, Fri Apr 4 22:47:56 2025 UTC

# Line 574 | Line 574 | rmx_write_header(const RMATRIX *rm, int dtype, FILE *f
574                  return(0);
575          if (rm->info)
576                  fputs(rm->info, fp);
577 <        if (dtype == DTfromHeader)
577 >        if (dtype == DTfromHeader) {
578                  dtype = rm->dtype;
579 <        else if (dtype == DTrgbe && (rm->dtype == DTxyze ||
579 > #if DTrmx_native==DTfloat
580 >                if (dtype == DTdouble)          /* but stored as float? */
581 >                        dtype = DTfloat;
582 > #endif
583 >        } else if (dtype == DTrgbe && (rm->dtype == DTxyze ||
584                                          findCIEprims(rm->info)))
585                  dtype = DTxyze;
586          else if ((dtype == DTxyze) & (rm->dtype == DTrgbe))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines