diff options
author | Dave Parks <davep@lindenlab.com> | 2010-10-29 12:06:45 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2010-10-29 12:06:45 -0500 |
commit | e8a92e69101b0db9166371f800feae7b6e1a9a82 (patch) | |
tree | 63fa8de7c94d06e3a7cd0b7a34ae04daac0a7234 /indra/newview | |
parent | 78e62d00306f55c4f04366bf8f89fd7b3ccdf489 (diff) |
Fix for sometimes missing the color value on last vertex of a face.
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llface.cpp b/indra/newview/llface.cpp index 4de61964c7..f5a04c8c81 100644 --- a/indra/newview/llface.cpp +++ b/indra/newview/llface.cpp @@ -1665,6 +1665,11 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume, LLVector4a* dst = (LLVector4a*) colors.get(); S32 num_vecs = num_vertices/4; + if (num_vertices%4 > 0) + { + ++num_vecs; + } + for (S32 i = 0; i < num_vecs; i++) { dst[i] = src; |