• Advertisement
Sign in to follow this  

how to fix a problem with CloneMesh function?

This topic is 1928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

[CODE]
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);
[/CODE]

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement