From 7b7dede420294f5ff5d0649ede80ac4e3ad4cfb1 Mon Sep 17 00:00:00 2001 From: driver1998 Date: Sun, 5 May 2019 01:19:16 +0800 Subject: [PATCH] Fix D3D11 context on Windows ARM Debug debug layers are not available on ARM32/ARM64 (D3D*SDKLayers.dll not available), so disable it. --- Windows/GPU/D3D11Context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/GPU/D3D11Context.cpp b/Windows/GPU/D3D11Context.cpp index 2841c00387..4a88910136 100644 --- a/Windows/GPU/D3D11Context.cpp +++ b/Windows/GPU/D3D11Context.cpp @@ -51,7 +51,7 @@ void D3D11Context::SwapInterval(int interval) { HRESULT D3D11Context::CreateTheDevice(IDXGIAdapter *adapter) { bool windowed = true; -#ifdef _DEBUG +#if defined(_DEBUG) && !defined(_M_ARM) && !defined(_M_ARM64) UINT createDeviceFlags = D3D11_CREATE_DEVICE_DEBUG; #else UINT createDeviceFlags = 0;