帮看下这个用delete不
DWORD numSubsets = 0;
Mesh->GetAttributeTable(0, &numSubsets);
D3DXATTRIBUTERANGE *table = new D3DXATTRIBUTERANGE [ numSubsets];
Mesh->GetAttributeTable(table, &numSubsets);
第三行new了,没释放不对的吧?
还有不new 行不行?比如这样,
D3DXATTRIBUTERANGE table[numSubsets];
Mesh->GetAttributeTable(table, &numSubsets);