From 268439dd4bac6fcefc3dff31c2bfdf01825c7ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sat, 11 May 2019 08:37:42 +0200 Subject: [PATCH] Fix issue with D3D9 vs UWP --- GPU/GPU.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/GPU/GPU.cpp b/GPU/GPU.cpp index 47944003a7..2a0bee4842 100644 --- a/GPU/GPU.cpp +++ b/GPU/GPU.cpp @@ -31,8 +31,11 @@ #include "GPU/Null/NullGpu.h" #include "GPU/Software/SoftGpu.h" -#if defined(_WIN32) +#if PPSSPP_API(D3D9) #include "GPU/Directx9/GPU_DX9.h" +#endif + +#if PPSSPP_API(D3D11) #include "GPU/D3D11/GPU_D3D11.h" #endif @@ -78,7 +81,7 @@ bool GPU_Init(GraphicsContext *ctx, Draw::DrawContext *draw) { SetGPU(new SoftGPU(ctx, draw)); break; case GPUCORE_DIRECTX9: -#if defined(_WIN32) +#if PPSSPP_API(D3D9) SetGPU(new DIRECTX9_GPU(ctx, draw)); break; #else