Added patch to allow NULL pointer for optional arguments of D3DXIntersectTri.