diff options
author | Ansariel <ansariel.hiller@phoenixviewer.com> | 2025-08-11 18:40:16 +0200 |
---|---|---|
committer | Andrey Lihatskiy <118752495+marchcat@users.noreply.github.com> | 2025-08-12 14:09:53 +0000 |
commit | f03cd219a91740de9f406cfae5bbc15194156c78 (patch) | |
tree | b71b5047b3d53c47ae59f3d03f48b4d93537838e /indra/newview/gltf/asset.cpp | |
parent | c61c9a9e67c1f5f1f123742c529b843c78577aba (diff) |
Fix clang compiler issues due to unused variables
Diffstat (limited to 'indra/newview/gltf/asset.cpp')
-rw-r--r-- | indra/newview/gltf/asset.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/gltf/asset.cpp b/indra/newview/gltf/asset.cpp index e24aea4a28..28f30ae1c9 100644 --- a/indra/newview/gltf/asset.cpp +++ b/indra/newview/gltf/asset.cpp @@ -589,7 +589,9 @@ bool Asset::prep() for (U32 variant = 0; variant < LLGLSLShader::NUM_GLTF_VARIANTS; ++variant) { +#ifdef SHOW_ASSERT U32 attribute_mask = 0; +#endif // for each mesh for (auto& mesh : mMeshes) { @@ -607,7 +609,9 @@ bool Asset::prep() // all primitives of a given variant and material should all have the same attribute mask llassert(attribute_mask == 0 || primitive.mAttributeMask == attribute_mask); +#ifdef SHOW_ASSERT attribute_mask |= primitive.mAttributeMask; +#endif } } } |