I was not reprojecting the frame. Now I fixed this issue.