From b01f289340dfafd5f73062c5411f6f2fbf33f64b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Fri, 6 Feb 2015 10:47:53 -0800 Subject: [PATCH] Fixed issue #252. --- src/renderer_gl.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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();