Dylan Smith : d3dx9: Create compact_mesh helper function for OptimizeInplace.