I figured out how to fix this. For those who have the same problem in the future, follow these steps:
1) Go to the intel or amd website (not microsoft)
2) Find the correct driver for your graphics accelerator
3) If there is no windows 8 drivers for it, download the win7 or vista driver
4)...