Change cast which break build on linux

This commit is contained in:
Xele02 2013-01-21 00:42:08 +01:00
parent 3825df5c6a
commit 77af8f4727

View File

@ -783,9 +783,9 @@ u32 TransformDrawEngine::ComputeHash() {
u32 TransformDrawEngine::ComputeFastDCID() {
u32 hash = 0;
for (int i = 0; i < numDrawCalls; i++) {
hash ^= (u32)drawCalls[i].verts;
hash ^= *(u32*)&drawCalls[i].verts;
hash = _rotl(hash, 13);
hash ^= (u32)drawCalls[i].inds;
hash ^= *(u32*)&drawCalls[i].inds;
hash = _rotl(hash, 13);
hash ^= (u32)drawCalls[i].vertType;
hash = _rotl(hash, 13);