mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 23:07:18 +00:00
[host] Don't specify D3D11_CREATE_DEVICE_DEBUG in release builds
This commit is contained in:
parent
a84480470c
commit
d450d792e3
@ -108,17 +108,26 @@ bool DXGI::Initialize(CaptureOptions * options)
|
|||||||
D3D_FEATURE_LEVEL_9_1
|
D3D_FEATURE_LEVEL_9_1
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if DEBUG
|
||||||
|
#define CREATE_FLAGS (D3D11_CREATE_DEVICE_DEBUG)
|
||||||
|
#else
|
||||||
|
#define CREATE_FLAGS (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
status = D3D11CreateDevice(
|
status = D3D11CreateDevice(
|
||||||
adapter,
|
adapter,
|
||||||
D3D_DRIVER_TYPE_UNKNOWN,
|
D3D_DRIVER_TYPE_UNKNOWN,
|
||||||
NULL,
|
NULL,
|
||||||
D3D11_CREATE_DEVICE_DEBUG,
|
CREATE_FLAGS,
|
||||||
featureLevels, ARRAYSIZE(featureLevels),
|
featureLevels, ARRAYSIZE(featureLevels),
|
||||||
D3D11_SDK_VERSION,
|
D3D11_SDK_VERSION,
|
||||||
&m_device,
|
&m_device,
|
||||||
&m_featureLevel,
|
&m_featureLevel,
|
||||||
&m_deviceContext
|
&m_deviceContext
|
||||||
);
|
);
|
||||||
|
|
||||||
|
#undef CREATE_FLAGS
|
||||||
|
|
||||||
adapter.Release();
|
adapter.Release();
|
||||||
|
|
||||||
if (FAILED(status))
|
if (FAILED(status))
|
||||||
|
Loading…
Reference in New Issue
Block a user