diff options
author | Dave Parks <davep@lindenlab.com> | 2013-05-07 17:20:33 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2013-05-07 17:20:33 -0500 |
commit | dbfcd6c9c5709b74365c2538ba312685b09d22bf (patch) | |
tree | 378a109c6094afea0bb32a8a7334b226ab2fc60b /indra/llmath/llvolume.cpp | |
parent | 2a8ec731c93bb3c119cea166057a027aa37e383b (diff) |
Optimization -- don't draw glow in alpha pool unless needed
Diffstat (limited to 'indra/llmath/llvolume.cpp')
-rw-r--r-- | indra/llmath/llvolume.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llmath/llvolume.cpp b/indra/llmath/llvolume.cpp index 602f2c29e5..7751ef87ee 100644 --- a/indra/llmath/llvolume.cpp +++ b/indra/llmath/llvolume.cpp @@ -4520,7 +4520,11 @@ LLVolumeFace& LLVolumeFace::operator=(const LLVolumeFace& src) S32 tc_size = (mNumVertices*sizeof(LLVector2)+0xF) & ~0xF; LLVector4a::memcpyNonAliased16((F32*) mPositions, (F32*) src.mPositions, vert_size); - LLVector4a::memcpyNonAliased16((F32*) mNormals, (F32*) src.mNormals, vert_size); + + if (src.mNormals) + { + LLVector4a::memcpyNonAliased16((F32*) mNormals, (F32*) src.mNormals, vert_size); + } if(src.mTexCoords) { |