From 35c8fb6478b07625adb71bb8b9fc5d0b69f695a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 10 Mar 2018 11:54:33 -0800 Subject: [PATCH] Fixed Linux build. --- src/dxgi.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/dxgi.cpp b/src/dxgi.cpp index 9a59bb2cb..f2a67884f 100644 --- a/src/dxgi.cpp +++ b/src/dxgi.cpp @@ -4,6 +4,9 @@ */ #include "bgfx_p.h" + +#if BGFX_CONFIG_RENDERER_DIRECT3D11 || BGFX_CONFIG_RENDERER_DIRECT3D12 + #include "dxgi.h" #include "renderer_d3d.h" @@ -411,5 +414,6 @@ namespace bgfx #endif // BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT } - } // namespace bgfx + +#endif // BGFX_CONFIG_RENDERER_DIRECT3D11 || BGFX_CONFIG_RENDERER_DIRECT3D12