Ok I fixed the issue by repairing windows but I think the issue was actually DirectX, so if anyone has this problem in the future try un-installing all DirectX then re-installing it