Fix D3D11 context on Windows ARM Debug

debug layers are not available on ARM32/ARM64 (D3D*SDKLayers.dll not available), so disable it.
This commit is contained in:
driver1998 committed 2019-05-05 01:19:16 +08:00
1 parent e3213b14ee
commit 7b7dede420
1 file changed
+1 -1
+1 -1
View File
@@ -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;