diff options
author | Brad Linden <brad@lindenlab.com> | 2023-03-06 11:31:29 -0800 |
---|---|---|
committer | Brad Linden <brad@lindenlab.com> | 2023-03-06 11:38:24 -0800 |
commit | 8564da58315d015bc2cd60e5f15395e4173d9adc (patch) | |
tree | a067a579f26a72c3f26d5f2eef7a89f6d4f87c87 /indra/llrender/llvertexbuffer.cpp | |
parent | 56e5385bd25cc50ea0055f5703dc3c24a5acfc93 (diff) |
Improved detail for llvertexbuffer attribute mask assertion failure in DRTVWR-559
Diffstat (limited to 'indra/llrender/llvertexbuffer.cpp')
-rw-r--r-- | indra/llrender/llvertexbuffer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llrender/llvertexbuffer.cpp b/indra/llrender/llvertexbuffer.cpp index 9fb5eef3a2..e5e6882ba1 100644 --- a/indra/llrender/llvertexbuffer.cpp +++ b/indra/llrender/llvertexbuffer.cpp @@ -1363,7 +1363,8 @@ void LLVertexBuffer::setBuffer() U32 data_mask = LLGLSLShader::sCurBoundShaderPtr->mAttributeMask; // this Vertex Buffer must provide all necessary attributes for currently bound shader - llassert((data_mask & mTypeMask) == data_mask); + llassert_msg((data_mask & mTypeMask) == data_mask, + "Attribute mask mismatch! mTypeMask should be a superset of data_mask. data_mask: 0x" << std::hex << data_mask << " mTypeMask: 0x" << mTypeMask << std::dec); if (sGLRenderBuffer != mGLBuffer) { |