From c0b15e57f462f2ed304d09a0486e42e3dad1ac72 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 5 Sep 2024 22:10:10 +0300
Subject: [PATCH] cmake: disable GPU backends for winrt
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05411c9a542a2..37e6647a6d799 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2943,7 +2943,7 @@ if(SDL_VIDEO)
endif()
endif()
-if(SDL_GPU)
+if(SDL_GPU AND NOT WINDOWS_STORE)
if(HAVE_D3D11_H)
sdl_glob_sources("${SDL3_SOURCE_DIR}/src/gpu/d3d11/*.c")
set(SDL_GPU_D3D11 1)