64-bit hashes (#126)
- ContactEvent sample - Improved shadows - #120 - Triangle collision fixes
This commit is contained in:
parent
3fc20f5b45
commit
f42be210a2
49 changed files with 19835 additions and 17544 deletions
|
|
@ -1762,7 +1762,7 @@ b3MeshData* b3CreateMesh( const b3MeshDef* def, int* degenerateTriangleIndices,
|
|||
b3Array_Destroy( vertices );
|
||||
|
||||
mesh->hash = 0;
|
||||
mesh->hash = b3NonZeroHash( b3Hash( B3_HASH_INIT, (uint8_t*)mesh, mesh->byteCount ) );
|
||||
mesh->hash = b3Hash64NonZero((uint8_t*)mesh, mesh->byteCount );
|
||||
|
||||
return mesh;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue