So I'm using ID3DXMESH to store a .X file, I'm loading it into the application with D3DXLoadMeshHierarchyFromX. I'm trying to get the vertex and index buffer from the mesh but getting incorrect results. The vertex buffer is correct but the index buffer is not, at least I don't think so. To simplify things; I created a basic cube mesh .X file. I've been changing around the index values of the file and the model changes shape but the returned index buffer does not reflect what is stated in the file.