Get rid of more ll_aligned_malloc calls.

master
Dave Parks 2010-11-21 03:25:22 -06:00
parent c149a0020b
commit 81ba8b8bc6
2 changed files with 3 additions and 6 deletions

View File

@ -78,14 +78,11 @@ BOOL LLLineSegmentBoxIntersect(const LLVector4a& start, const LLVector4a& end, c
LLVolumeOctreeListener::LLVolumeOctreeListener(LLOctreeNode<LLVolumeTriangle>* node)
{
node->addListener(this);
mBounds = (LLVector4a*) ll_aligned_malloc_16(sizeof(LLVector4a)*4);
mExtents = mBounds+2;
}
LLVolumeOctreeListener::~LLVolumeOctreeListener()
{
ll_aligned_free_16(mBounds);
}
void LLVolumeOctreeListener::handleChildAddition(const LLOctreeNode<LLVolumeTriangle>* parent,

View File

@ -64,8 +64,8 @@ public:
public:
LLVector4a* mBounds; // bounding box (center, size) of this node and all its children (tight fit to objects)
LLVector4a* mExtents; // extents (min, max) of this node and all its children
LLVector4a mBounds[2]; // bounding box (center, size) of this node and all its children (tight fit to objects)
LLVector4a mExtents[2]; // extents (min, max) of this node and all its children
};
class LLOctreeTriangleRayIntersect : public LLOctreeTraveler<LLVolumeTriangle>