<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">The patch is a copy/paste from the file d3d9/verdeclaration.c. So this file should be simplified too, if we simplify the d3dx9_36/mesh.c implementation.<br><br>Obviously, to compute the size of the vertex, we can use D3DXGetDeclVertexSize, but we gain very few.<br><br>So, what do you think about this?<br><br>A+<br><br>David<br></td></tr></table><br>