Update meshRenderSystem.cpp

This commit is contained in:
Areloch 2018-02-11 02:09:53 -06:00 committed by GitHub
parent c337649019
commit 7fd04eabaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,7 @@ void MeshRenderSystem::render(SceneManager *sceneManager, SceneRenderState* stat
// We sort by the material then vertex buffer
ri->defaultKey = matInst->getStateHint();
ri->defaultKey2 = (U32)ri->vertBuff; // Not 64bit safe!
ri->defaultKey2 = (uintptr_t)ri->vertBuff;
// Submit our RenderInst to the RenderPassManager
state->getRenderPass()->addInst(ri);
@ -375,4 +375,4 @@ U32 MeshRenderSystem::findBufferSetByMaterial(U32 matId)
}
return -1;
}
}