Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

how to fix a problem with CloneMesh function?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
No replies to this topic

#1 steven166   Members   

407
Like
0Likes
Like

Posted 11 October 2012 - 02:28 AM

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);





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.