DXGI_ERROR_INVALID_CALL

Fix DirectX CreateTexture2D Failed Error in Games

The 'DirectX function CreateTexture2D failed' error occurs when a game cannot allocate a texture resource. This is typically due to outdated drivers, corrupted DirectX files, or insufficient GPU memory. Follow these steps to resolve it.

Symptoms

When launching or playing a game, you encounter an error message: 'DirectX function CreateTexture2D failed' or similar. The game may crash to desktop, display a black screen, or freeze. This error often appears in titles like Battlefield V, Call of Duty: Warzone, Cyberpunk 2077, and Fortnite.

Root Causes

The error is caused by a failure to create a 2D texture resource in DirectX. Common triggers include:

  • Outdated or corrupted graphics drivers
  • Corrupted DirectX runtime files
  • Insufficient GPU memory (VRAM) or system RAM
  • Overheating GPU causing throttling
  • Conflicting overlay software (Discord, MSI Afterburner)
  • Game settings exceeding hardware capabilities
  • Windows DirectX feature level mismatch

Step-by-Step Fix

1. Update Graphics Drivers

  1. Press Win + X and select Device Manager.
  2. Expand Display adapters, right-click your GPU, and choose Update driver.
  3. Select Search automatically for drivers. If no update found, go to the GPU manufacturer's website (NVIDIA, AMD, Intel) and download the latest driver.
  4. Perform a clean installation: during setup, choose Custom (Advanced) and check Perform a clean installation.
  5. Restart your PC.

2. Repair DirectX Runtime

  1. Download the DirectX End-User Runtime Web Installer from Microsoft's official site.
  2. Run the installer and follow the prompts. It will replace any corrupted or missing DirectX files.
  3. Alternatively, open Command Prompt as Administrator and run:
    sfc /scannow
    Then restart.

3. Check GPU Memory and Settings

  1. Open Task Manager (Ctrl + Shift + Esc) and go to the Performance tab. Check GPU memory usage.
  2. If VRAM is near 100%, lower in-game graphics settings: reduce texture quality, resolution, or disable ray tracing.
  3. Close background applications (browsers, streaming software) to free system RAM.

4. Disable Overlays

  1. Disable Discord overlay: Discord > User Settings > Game Overlay > toggle off.
  2. Disable MSI Afterburner/RivaTuner overlays.
  3. Disable Windows Game Bar: Settings > Gaming > Game Bar > toggle off.

5. Verify Game Files

  1. Open your game launcher (Steam, Epic, Battle.net).
  2. Locate the game in your library, right-click, and select Properties (or Manage).
  3. Choose Verify integrity of game files (Steam) or Scan and Repair (Epic/Battle.net).
  4. Wait for completion and relaunch the game.

6. Increase Virtual Memory

  1. Press Win + R, type sysdm.cpl, and press Enter.
  2. Go to Advanced tab > Performance > Settings > Advanced > Virtual memory > Change.
  3. Uncheck Automatically manage paging file size.
  4. Select Custom size and set Initial size to 1.5x your RAM, Maximum size to 3x. For 16GB RAM: 24576 MB initial, 49152 MB maximum.
  5. Click Set, then OK. Restart.

Alternative Fixes

  • Use DirectX 11 instead of 12: Some games allow launch arguments. Add -dx11 or -d3d11 in the game's launch options.
  • Run the game as Administrator: Right-click game executable > Properties > Compatibility > check Run this program as an administrator.
  • Reinstall the game: A full reinstall can fix corrupted game assets.
  • Update Windows: Ensure you have the latest Windows updates installed (Settings > Update & Security > Check for updates).
  • Check for overheating: Use HWMonitor to check GPU temperatures. Clean dust from fans and ensure proper airflow.

Prevention

  • Keep your graphics drivers updated using GeForce Experience, AMD Adrenalin, or Intel Driver & Support Assistant.
  • Regularly run Windows Update to maintain DirectX components.
  • Monitor GPU temperatures and clean your PC every 6 months.
  • Adjust in-game settings to stay within your GPU's VRAM limit.
  • Avoid running multiple demanding applications simultaneously.
  • Perform a monthly system file check with sfc /scannow.

By following these steps, you should be able to eliminate the DirectX CreateTexture2D failed error and enjoy stable gaming performance.

Related Errors in Software – Microsoft Office
0xC004F074 Office 'We're sorry, we can't connect right now' activation error Word crashes on documents with certain fonts – fixes Outlook crashes when sending large attachments (over 20MB) Fix Chrome High Memory Usage on Windows/Mac

Was this solution helpful?

EP
Erropedia Team
Tech Support Editors
The Erropedia editorial team researches and documents real-world tech errors from across Windows, Linux, macOS, networking, databases, cloud platforms, and more. Every solution is reviewed for accuracy and updated as software and systems evolve.