bkaradzic 13 ani în urmă
părinte
comite
b9a0272856
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      src/vertexdecl.cpp

+ 2 - 2
src/vertexdecl.cpp

@@ -66,7 +66,7 @@ namespace bgfx
 
 	void VertexDecl::end()
 	{
-		m_hash = bx::hashMurmur2A(m_attributes, sizeof(m_attributes) );
+		m_hash = bx::hashMurmur2A(m_attributes);
 	}
 
 	void VertexDecl::add(Attrib::Enum _attrib, uint8_t _num, AttribType::Enum _type, bool _normalized, bool _asInt)
@@ -119,7 +119,7 @@ namespace bgfx
 #if BGFX_CONFIG_DEBUG
 		dbgPrintf("vertexdecl %08x (%08x), stride %d\n"
 			, _decl.m_hash
-			, bx::hashMurmur2A(_decl.m_attributes, sizeof(_decl.m_attributes) )
+			, bx::hashMurmur2A(_decl.m_attributes)
 			, _decl.m_stride
 			);