DXGI_ERROR_INVALID_CALL
Fix DirectX CreateTexture2D Failed Error in Games
The 'DirectX function CreateTexture2D failed' error occurs when a game or application cannot allocate a texture resource. This guide explains causes and provides step-by-step fixes including driver updates and DirectX reinstallation.
Symptoms
When launching or playing a game, you may encounter an error message similar to: "DirectX function CreateTexture2D failed" or "DXGI_ERROR_INVALID_CALL: CreateTexture2D failed." The game may crash to desktop, display a black screen, or show corrupted textures before failing. This issue is common in demanding titles like Battlefield V, Call of Duty, and other DirectX 12 games.
Root Causes
The error indicates that the GPU cannot allocate a texture resource. Common causes include:
- Outdated or corrupted graphics drivers – especially after Windows updates.
- Corrupted DirectX runtime files – missing or damaged system components.
- GPU memory exhaustion – texture size exceeds available VRAM.
- Overclocking instability – GPU or memory overclocks cause allocation failures.
- Incompatible graphics settings – texture quality set too high for your hardware.
- Windows Graphics Settings conflicts – hardware-accelerated GPU scheduling or variable refresh rate issues.
Step-by-Step Fix
Step 1: Update Graphics Drivers
- Press Win + X and select Device Manager.
- Expand Display adapters, right-click your GPU, and choose Update driver.
- Select Search automatically for drivers. If no update is found, visit your GPU manufacturer's website (NVIDIA, AMD, Intel) and download the latest driver manually.
- Perform a clean installation of the driver (check the option during setup).
- Restart your PC.
Step 2: Reinstall DirectX Runtime
- Download the DirectX End-User Runtime Web Installer from Microsoft's official site.
- Run the installer and follow the prompts.
- Alternatively, use the DirectX Diagnostic Tool (Win + R, type
dxdiag) to check DirectX version and look for errors. - Restart your PC after installation.
Step 3: Reset Graphics Settings
- Open your game's settings and set Texture Quality to Medium or Low.
- Disable Ray Tracing if available.
- Set Resolution Scale to 100% or lower.
- If the game uses DirectX 12, try switching to DirectX 11 in the game's video options.
Step 4: Disable Overclocking
- Open your GPU overclocking tool (MSI Afterburner, EVGA Precision X1).
- Reset all sliders to default values.
- If you overclocked your RAM or CPU, revert to stock speeds in BIOS.
- Test the game again.
Step 5: Adjust Windows Graphics Settings
- Go to Settings > System > Display > Graphics.
- Under Default settings, click Change default graphics settings.
- Turn Hardware-accelerated GPU scheduling Off.
- Turn Variable refresh rate Off.
- Restart your PC.
Alternative Fixes
- Run the game in windowed mode – sometimes fullscreen exclusive mode triggers the error.
- Verify game files – in Steam/Epic, right-click the game, select Properties > Local Files > Verify integrity of game files.
- Increase virtual memory – go to System Properties > Advanced > Performance > Advanced > Virtual memory and set a custom size (e.g., 1.5x your RAM).
- Disable antivirus temporarily – some security software interferes with DirectX.
- Reinstall the game – as a last resort, uninstall and reinstall the game to fix corrupted files.
Prevention
- Keep your graphics drivers updated regularly (check monthly).
- Monitor GPU temperature and memory usage with tools like MSI Afterburner.
- Avoid running multiple demanding applications simultaneously.
- Maintain a stable overclock (stress test with FurMark or 3DMark).
- Regularly run
sfc /scannowandDISM /Online /Cleanup-Image /RestoreHealthto repair system files.
Was this solution helpful?