summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D11
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-10-19 22:22:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-10-19 22:22:09 +0000
commit8f94f3cf24999d99a8868528ba90357d9e09dbb5 (patch)
tree3cfaade199f6e9a0371c6ebb0f502cd735f0f9cb /Graphics/GraphicsEngineD3D11
parentRenamed EngineD3D11DebugFlags to D3D11_DEBUG_FLAGS (Updated API version to 24... (diff)
downloadDiligentCore-8f94f3cf24999d99a8868528ba90357d9e09dbb5.tar.gz
DiligentCore-8f94f3cf24999d99a8868528ba90357d9e09dbb5.zip
Added D3D11_DEBUG_FLAG_CREATE_DEBUG_DEVICE flag
Diffstat (limited to 'Graphics/GraphicsEngineD3D11')
-rw-r--r--Graphics/GraphicsEngineD3D11/src/EngineFactoryD3D11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Graphics/GraphicsEngineD3D11/src/EngineFactoryD3D11.cpp b/Graphics/GraphicsEngineD3D11/src/EngineFactoryD3D11.cpp
index cab8ae25..a89910f3 100644
--- a/Graphics/GraphicsEngineD3D11/src/EngineFactoryD3D11.cpp
+++ b/Graphics/GraphicsEngineD3D11/src/EngineFactoryD3D11.cpp
@@ -117,8 +117,8 @@ void EngineFactoryD3D11Impl::CreateDeviceAndContextsD3D11(const EngineD3D11Creat
// D3D11_CREATE_DEVICE_BGRA_SUPPORT;
UINT creationFlags = 0;
-#if defined(_DEBUG)
- if (SdkLayersAvailable())
+#if defined(DEVELOPMENT)
+ if ((EngineCI.DebugFlags & D3D11_DEBUG_FLAG_CREATE_DEBUG_DEVICE) != 0 && SdkLayersAvailable())
{
// If the project is in a debug build, enable debugging via SDK Layers with this flag.
creationFlags |= D3D11_CREATE_DEVICE_DEBUG;