mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
Fixed issue #252.
This commit is contained in:
parent
ae943ade03
commit
b01f289340
1 changed files with 5 additions and 4 deletions
|
@ -4785,11 +4785,12 @@ namespace bgfx
|
||||||
&& 0 == draw.m_instanceDataOffset)
|
&& 0 == draw.m_instanceDataOffset)
|
||||||
{
|
{
|
||||||
if (programChanged
|
if (programChanged
|
||||||
|
|| baseVertex != draw.m_startVertex
|
||||||
|| currentState.m_vertexBuffer.idx != draw.m_vertexBuffer.idx
|
|| currentState.m_vertexBuffer.idx != draw.m_vertexBuffer.idx
|
||||||
|| currentState.m_indexBuffer.idx != draw.m_indexBuffer.idx
|
|| currentState.m_indexBuffer.idx != draw.m_indexBuffer.idx
|
||||||
|| currentState.m_instanceDataBuffer.idx != draw.m_instanceDataBuffer.idx
|
|
||||||
|| currentState.m_instanceDataOffset != draw.m_instanceDataOffset
|
|| 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;
|
bx::HashMurmur2A murmur;
|
||||||
murmur.begin();
|
murmur.begin();
|
||||||
|
|
Loading…
Reference in a new issue