Commit 38c929f0 authored by Martin Finkel's avatar Martin Finkel
Browse files

d3d11: D3D11_CREATE_DEVICE_DEBUG in debug mode only

parent a31cedd3
......@@ -317,7 +317,9 @@ void RenderAPI_D3D11::CreateResources(ID3D11Device *d3device, ID3D11DeviceContex
m_d3dctxUnity = d3dctx;
UINT creationFlags = D3D11_CREATE_DEVICE_VIDEO_SUPPORT; /* needed for hardware decoding */
creationFlags |= D3D11_CREATE_DEVICE_DEBUG; //TODO: remove for release mode
#ifndef NDEBUG
creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
#endif
hr = D3D11CreateDevice(NULL,
D3D_DRIVER_TYPE_HARDWARE,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment