How to Fix Call of Duty DirectX Error
Call of Duty games can crash with a DirectX error that displays messages like “DirectX encountered an unrecoverable error” or “DEV ERROR.” Here are all the methods to fix DirectX errors in Modern Warfare, Warzone, and other Call of Duty titles.
Method 1: Update GPU Drivers
Outdated graphics drivers are the most common cause of DirectX errors in Call of Duty games.
- For NVIDIA: Open GeForce Experience and install the latest Game Ready driver.
- For AMD: Open AMD Software and install the latest driver.
- Restart your PC after installing the driver.
- Launch the game and check if the error is resolved.
Method 2: Repair Game Files
Corrupted game files can cause DirectX errors when the game tries to load damaged textures or shaders.
- On Steam: Right-click the game, Properties, Installed Files, Verify integrity of game files.
- On Battle.net: Click the gear icon next to Play, then Scan and Repair.
- Wait for the process to complete.
- Launch the game.
Method 3: Update DirectX
An outdated DirectX installation can cause compatibility errors with newer games.
- Open Windows Settings, then Windows Update.
- Install all available updates, as DirectX updates are included with Windows updates.
- You can also download the DirectX End-User Runtime Web Installer from Microsoft’s website for additional legacy DirectX files.
- Restart your PC.
Method 4: Lower Graphics Settings
High graphics settings can push your GPU beyond its limits and trigger DirectX errors, especially with ray tracing enabled.
- Launch the game and go to Settings, then Graphics.
- Reduce the overall quality preset to Medium or Low.
- Disable Ray Tracing if it is enabled.
- Reduce the render resolution to 100% or lower.
- Set the VRAM usage target below your GPU’s maximum capacity.
Method 5: Delete Shader Cache
Corrupted shader cache files are a frequent cause of DirectX errors. Deleting them forces the game to rebuild shaders from scratch.
- Close the game and its launcher completely.
- Navigate to Documents/Call of Duty (the exact folder name depends on the game version).
- Delete any folders named “shadercache” or similar.
- Also go to the in-game Settings and select Restart Shaders Installation if available.
- Launch the game. It will recompile shaders which may take a few minutes.
Method 6: Disable GPU Overclocking
GPU overclocking can cause instability that triggers DirectX errors, even if the overclock is stable in other games.
- Open your overclocking software (MSI Afterburner, EVGA Precision, etc.).
- Reset all clock speeds and voltage settings to default.
- Close the overclocking software.
- Launch the game and test for stability.
Method 7: Run as Administrator
Running the game with administrator privileges can resolve permission-related DirectX errors.
- Navigate to the game’s installation folder.
- Right-click the game executable and select Properties.
- Click the Compatibility tab.
- Check Run this program as an administrator.
- Click Apply and OK.
- Launch the game.
Method 8: Increase Virtual Memory
Running out of system memory can cause DirectX to fail. Increasing virtual memory provides extra resources.
- Search for “Advanced system settings” in the Start menu.
- Click the Advanced tab, Settings, Advanced, then Change under Virtual Memory.
- Uncheck Automatically manage and set Custom size: Initial 8192, Maximum 16384.
- Click Set, OK, and restart your PC.
Method 9: Reinstall the Game
If nothing else works, a clean reinstall removes all corrupted files and shader caches.
- Uninstall the game through your launcher or Windows Settings.
- Delete any remaining game files from the installation directory.
- Delete the game folder in Documents as well.
- Reinstall the game and launch it.