Original Post
Hi, I'm trying to make the CloneMeshFVF() function work by passing in a DWORD variable, and not a "#define" variable, and if I do that It always fails. For example
DWORD mesh_FVF = D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1 | D3DFVF_NORMAL;
...
mesh->CloneMeshFVF(D3DXMESH_SYSTEMMEM, mesh_FVF, localDevice, &clonedMesh);
but if I have something like #define MESHFVF (D3DFVF_XYZ | D3DFVF_DIFFUSE | D3DFVF_TEX1 | D3DFVF_NORMAL), and pass that into the function it's fine. Please help, Thanks.