How to Fix DirectX Errors in Games on Windows 11 and 10

Black wired game controller on a wooden desk in front of a monitor, a general picture for DirectX errors in games

DirectX is the set of tools that games use to talk to your graphics card. A DirectX error can mean the game needs a newer feature, a runtime file is missing or the graphics driver stopped responding. This guide helps you read the message, check what your PC supports and fix the DirectX error with steps that each give a result you can check. It covers Windows 11 and Windows 10 and makes no registry changes.

Common messages and what they point to

  • DXGI_ERROR_DEVICE_REMOVED, DXGI_ERROR_DEVICE_HUNG or ‘GetDeviceRemovedReason failed’: the graphics driver or card stopped responding. Typical causes are heat, power, an overclock or a driver bug.
  • ‘DirectX 12 is not supported’ or ‘feature level not supported’: the graphics card or its driver is too old for the game.
  • A missing d3dx9, d3dx10, d3dx11 or d3dcompiler file: an older game needs the legacy DirectX runtime.
  • ‘DirectX function failed’ or ‘Unable to initialize DirectX’: a general failure. Start with the first steps below.

Step-by-step: fix the DirectX error

Step 1: Check your DirectX version and your graphics card

Press Windows + R, type dxdiag and press Enter. If it asks to check for signed drivers, choose either answer. On the System tab, read DirectX Version. On the Display tab, read the graphics card name, Driver Version, Feature Levels and Driver Model. Read the Notes box at the bottom of each tab too.

You should see: DirectX 12 on Windows 10 and 11, a driver with a recent date, and a Notes box saying No problems found. Feature levels such as 12_1 or 12_0 are good. If the top feature level is lower than the game asks for (the game page lists it), the card is too old for that mode, so see Step 5. A problem in the Notes box names the part to fix.

Step 2: Install Windows updates

DirectX is updated through Windows. Open Settings > Windows Update, install everything and restart. Check Advanced options > Optional updates for a graphics or hardware driver. If updates fail, see how to fix Windows Update.

Step 3: Do a clean graphics driver installation

Follow how to update or reinstall graphics drivers and choose the clean installation option in the maker’s installer. Restart, and run dxdiag again to check the new driver date.

You should see: the new driver version on the Display tab, and the game starting without the error. If the error began after a driver update, install the previous driver instead.

Step 4: Install the legacy DirectX runtime for older games

Older games may need files such as d3dx9_43.dll that Windows does not include. Download the DirectX End-User Runtime Web Installer from Microsoft’s own download page, run it and restart. Never download a single DLL file from a random website, because those files are a common way to spread malware (see how to fix missing DLL errors and how to remove a virus or malware). If the message names MSVCP140.dll or VCRUNTIME140.dll instead of a DirectX file, see the Visual C++ runtime repair steps.

If the message names D3D10_1.dll, D3D10_1Core.dll or D3D10Core.dll instead, those come with Windows rather than with the legacy runtime. See the guides to D3D10_1.dll missing, D3D10_1Core.dll errors and D3D10Core.dll errors.

You should see: the missing-file message gone when you start the game.

Step 5: Check that your graphics card supports what the game needs

Look up the card’s specifications on its maker’s page. A very old card, or basic integrated graphics, may not support the DirectX features a new game needs. If the game offers a DirectX 11 mode in its settings or launcher, choose it. On a PC with both integrated and dedicated graphics, make sure the game uses the dedicated card (see how to set the preferred GPU for a game).

Step 6: For ‘device removed’ errors, look for instability

Then open Event Viewer > Windows Logs > System and look for a Display event such as Display driver stopped responding and has successfully recovered at the time of the crash. It confirms that the driver timed out, which points to heat, power or the driver itself.

Step 7: Verify the game files and try lower settings

In the game’s launcher, run Verify integrity of game files (the name differs by launcher), then lower the graphics quality or resolution and turn off ray tracing as a test. If the game also crashes before it reaches the menu, see how to fix a game crashing on startup. If it will not open at all and shows error 0xc000007b, follow that guide.

Step 8: Close overlays and background tools

Overlays, recording tools, monitoring programs and other launchers can interfere with the graphics system. Close them one at a time and test the game again. If the PC is also stuttering, see how to fix stuttering and low FPS.

Step 9: Check the system files

If other programs also fail with graphics errors, repair Windows with the steps in how to repair Windows system files with SFC and DISM.

More help

For more gaming PC guides, search by symptom on the PC Repair Atlas homepage.

FAQ

Do I need to download DirectX? Not for current games, because Windows includes it. Only older games may need the legacy runtime from Step 4.

Is a DirectX error always the graphics card? No. It can be a driver, a missing file, a game setting or a power problem.

Will reinstalling Windows help? Usually not. Try the steps above first.

Can I update DirectX on its own? On Windows 10 and 11 it updates with Windows Update and the graphics driver. There is no separate DirectX 12 download.