|
@@ -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;
|
|
|
-}
|
|
|
+}
|