From 73f89cca03f376fc1c7634bcbfef55d126ba3866 Mon Sep 17 00:00:00 2001 From: Laura Hermanns Date: Mon, 10 Jun 2024 18:20:23 -0400 Subject: [PATCH] [UWP] Fix missing DXGI header in D3D11 backend for UWP. UWP target platform must include and independently of LLGL_D3D11_ENABLE_FEATURELEVEL. --- sources/Renderer/Direct3D11/D3D11RenderSystem.h | 8 +++++--- sources/Renderer/Direct3D11/D3D11SwapChain.h | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/sources/Renderer/Direct3D11/D3D11RenderSystem.h b/sources/Renderer/Direct3D11/D3D11RenderSystem.h index ef5e9539b7..91bd6dfd50 100644 --- a/sources/Renderer/Direct3D11/D3D11RenderSystem.h +++ b/sources/Renderer/Direct3D11/D3D11RenderSystem.h @@ -42,7 +42,9 @@ #include "Direct3D11.h" #if LLGL_D3D11_ENABLE_FEATURELEVEL >= 3 -#include +# include +#elif defined LLGL_OS_UWP +# include #endif @@ -130,11 +132,11 @@ class D3D11RenderSystem final : public RenderSystem ComPtr factory_; - #if LLGL_D3D11_ENABLE_FEATURELEVEL >= 1 + #if LLGL_D3D11_ENABLE_FEATURELEVEL >= 1 || defined LLGL_OS_UWP ComPtr factory1_; #endif - #if LLGL_D3D11_ENABLE_FEATURELEVEL >= 2 + #if LLGL_D3D11_ENABLE_FEATURELEVEL >= 2 || defined LLGL_OS_UWP ComPtr factory2_; #endif diff --git a/sources/Renderer/Direct3D11/D3D11SwapChain.h b/sources/Renderer/Direct3D11/D3D11SwapChain.h index 0f5cdb189e..6f110269be 100644 --- a/sources/Renderer/Direct3D11/D3D11SwapChain.h +++ b/sources/Renderer/Direct3D11/D3D11SwapChain.h @@ -14,7 +14,7 @@ #include #include -#if LLGL_D3D11_ENABLE_FEATURELEVEL >= 3 +#if LLGL_D3D11_ENABLE_FEATURELEVEL >= 3 || defined LLGL_OS_UWP # include #endif