diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 7aa0d24d..671d1550 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -4785,11 +4785,12 @@ namespace bgfx && 0 == draw.m_instanceDataOffset) { if (programChanged - || currentState.m_vertexBuffer.idx != draw.m_vertexBuffer.idx - || currentState.m_indexBuffer.idx != draw.m_indexBuffer.idx - || currentState.m_instanceDataBuffer.idx != draw.m_instanceDataBuffer.idx + || baseVertex != draw.m_startVertex + || currentState.m_vertexBuffer.idx != draw.m_vertexBuffer.idx + || currentState.m_indexBuffer.idx != draw.m_indexBuffer.idx || currentState.m_instanceDataOffset != draw.m_instanceDataOffset - || currentState.m_instanceDataStride != draw.m_instanceDataStride) + || currentState.m_instanceDataStride != draw.m_instanceDataStride + || currentState.m_instanceDataBuffer.idx != draw.m_instanceDataBuffer.idx) { bx::HashMurmur2A murmur; murmur.begin();