You can also reinstall DirectX. Just don't uninstall it, reinstalling over it just fixes any files that may be corrupted.