Manta Interactive Ray Tracer Development Mailing List

Text archives Help


[MANTA] r527 - branches/itanium2/Model/Groups


Chronological Thread 
  • From: abe@sci.utah.edu
  • To: manta@sci.utah.edu
  • Subject: [MANTA] r527 - branches/itanium2/Model/Groups
  • Date: Thu, 1 Sep 2005 16:20:49 -0600 (MDT)

Author: abe
Date: Thu Sep  1 16:20:49 2005
New Revision: 527

Modified:
   branches/itanium2/Model/Groups/KDTreeLoader.cc
Log:
Fixed endianess problem with kdtree colors.

Modified: branches/itanium2/Model/Groups/KDTreeLoader.cc
==============================================================================
--- branches/itanium2/Model/Groups/KDTreeLoader.cc      (original)
+++ branches/itanium2/Model/Groups/KDTreeLoader.cc      Thu Sep  1 16:20:49 
2005
@@ -126,9 +126,9 @@
                        
                        // Check for big endian data.
                        if (is_big_endian()) {
-                               r = int(endian_swap(_rawData[0]) * 255 + .5f);
-                               g = int(endian_swap(_rawData[1]) * 255 + .5f);
-                               b = int(endian_swap(_rawData[2]) * 255 + .5f);
+                               r = endian_swap(_rawData[0]);
+                               g = endian_swap(_rawData[1]);
+                               b = endian_swap(_rawData[2]);
                                _rawData += 3;
                        }
                        else {




  • [MANTA] r527 - branches/itanium2/Model/Groups, abe, 09/01/2005

Archive powered by MHonArc 2.6.16.

Top of page