how to fix a problem with CloneMesh function?

Started by
-1 comments, last by pnt1614 11 years, 7 months ago
After using CDXUTXFileMesh::create to create a mesh, I try to clone it for changing the vertex format but the CloneMesh function always fail?

Does anybody know the reason? help me, please?


V_RETURN( g_Mesh9.Create( pd3dDevice9, L"tiny\\tiny.x" ) );

//The CloneMesh function is invoked inside the SetVertexDecl.
//It fails and return -858993460 value
g_Mesh9.SetVertexDecl(pd3dDevice9, decl, true, false, false);

This topic is closed to new replies.

Advertisement