Text archives Help
- From: abe@sci.utah.edu
- To: manta@sci.utah.edu
- Subject: [MANTA] r1157 - trunk/Model/Materials
- Date: Wed, 26 Jul 2006 18:22:24 -0600 (MDT)
Author: abe
Date: Wed Jul 26 18:22:23 2006
New Revision: 1157
Modified:
trunk/Model/Materials/Lambertian.cc
Log:
Aligned ColorArray stack declaration. Fixed segfault in 64 bit build when
using constant ambient.
M Lambertian.cc
Modified: trunk/Model/Materials/Lambertian.cc
==============================================================================
--- trunk/Model/Materials/Lambertian.cc (original)
+++ trunk/Model/Materials/Lambertian.cc Wed Jul 26 18:22:23 2006
@@ -38,7 +38,7 @@
colortex->mapValues(diffuse, context, rays);
// Compute ambient contributions for all rays
- ColorArray totalLight;
+ MANTA_ALIGN(16) ColorArray totalLight;
activeLights->getAmbientLight()->computeAmbient(context, rays, totalLight);
// We normalized directions for proper dot product computation.
- [MANTA] r1157 - trunk/Model/Materials, abe, 07/26/2006
Archive powered by MHonArc 2.6.16.