[PATCH 2/2] d3dx9_36: Add more checks for D3DXOptimizeFaces