diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 84578af6..fae356cc 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -4879,6 +4879,14 @@ namespace bgfx bx::HashMurmur2A murmur; murmur.begin(); murmur.add(draw.m_vertexBuffer.idx); + + if (isValid(draw.m_vertexBuffer) ) + { + const VertexBufferGL& vb = m_vertexBuffers[draw.m_vertexBuffer.idx]; + uint16_t decl = !isValid(vb.m_decl) ? draw.m_vertexDecl.idx : vb.m_decl.idx; + murmur.add(decl); + } + murmur.add(draw.m_indexBuffer.idx); murmur.add(draw.m_instanceDataBuffer.idx); murmur.add(draw.m_instanceDataOffset);