diff options
author | Cosmic Linden <cosmic@lindenlab.com> | 2024-01-24 14:33:24 -0800 |
---|---|---|
committer | Cosmic Linden <cosmic@lindenlab.com> | 2024-01-25 10:32:38 -0800 |
commit | 8a1e2f98cbbc242d2721deaa92ed34c3f3fcf788 (patch) | |
tree | 7850d29fd5f3824ab260ace8d3261811c5e01e79 /indra/newview | |
parent | 1691a25ce801bfd22cfc89958a07c4f53d3af772 (diff) |
Fix vertex color indexing in material preview
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llgltfmaterialpreviewmgr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/llgltfmaterialpreviewmgr.cpp b/indra/newview/llgltfmaterialpreviewmgr.cpp index 394f600a92..09a2954710 100644 --- a/indra/newview/llgltfmaterialpreviewmgr.cpp +++ b/indra/newview/llgltfmaterialpreviewmgr.cpp @@ -337,7 +337,7 @@ void set_preview_sphere_material(PreviewSphere& preview_sphere, LLPointer<LLFetc info->mGLTFMaterial = material; LLVertexBuffer* buf = info->mVertexBuffer.get(); LLStrider<LLColor4U> colors; - const S32 count = info->mEnd - info->mStart; + const S32 count = info->mEnd - info->mStart + 1; buf->getColorStrider(colors, info->mStart, count); for (S32 i = 0; i < count; ++i) { |