Browse Source

Merge pull request #771 from velkyel/master

VertexDecl::m_hash should count m_stride too
Branimir Karadžić 9 years ago
parent
commit
3394ff7850
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/vertexdecl.cpp

+ 1 - 0
src/vertexdecl.cpp

@@ -107,6 +107,7 @@ namespace bgfx
 		murmur.begin();
 		murmur.begin();
 		murmur.add(m_attributes, sizeof(m_attributes) );
 		murmur.add(m_attributes, sizeof(m_attributes) );
 		murmur.add(m_offset, sizeof(m_offset) );
 		murmur.add(m_offset, sizeof(m_offset) );
+		murmur.add(m_stride);
 		m_hash = murmur.end();
 		m_hash = murmur.end();
 	}
 	}