Browse Source

Always enable D3D12 GPU on Windows

This isn't dependent on the render subsystem

Fixes https://github.com/libsdl-org/SDL/issues/12922
Sam Lantinga 3 months ago
parent
commit
ef54c3bf18
1 changed files with 1 additions and 1 deletions
  1. 1 1
      CMakeLists.txt

+ 1 - 1
CMakeLists.txt

@@ -3023,7 +3023,7 @@ if(SDL_GPU)
     set(SDL_GPU_D3D11 1)
     set(SDL_GPU_D3D11 1)
     set(HAVE_SDL_GPU TRUE)
     set(HAVE_SDL_GPU TRUE)
   endif()
   endif()
-  if(SDL_RENDER_D3D12)
+  if(WINDOWS)
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/gpu/d3d12/*.c")
     sdl_glob_sources("${SDL3_SOURCE_DIR}/src/gpu/d3d12/*.c")
     set(SDL_GPU_D3D12 1)
     set(SDL_GPU_D3D12 1)
     set(HAVE_SDL_GPU TRUE)
     set(HAVE_SDL_GPU TRUE)