diff options
author | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2016-08-17 12:41:57 +0200 |
---|---|---|
committer | Maurice Kalinowski <maurice.kalinowski@qt.io> | 2016-08-17 14:07:22 +0000 |
commit | d4e09df44d55572ef4f0c3c159b214edba9033cd (patch) | |
tree | 5c40643a650b39b28f2153c8487cc4e70e3c5671 /src/plugins/scenegraph | |
parent | 6b8c845001a33bbcfbf20496bd933588cbe9d7ea (diff) |
winrt: Make certification pass on D3D12 backend
D3D12GetDebugInterface is not allowed to be used in a package to be
uploaded to the store. However, keep it enabled for debug to still
access information provided by it.
Change-Id: Ie19167b4000b85d519d9726a66a42c6f1ef6ce4c
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/scenegraph')
-rw-r--r-- | src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp index 87215d5b54..9aae3fd8cd 100644 --- a/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp +++ b/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp @@ -736,9 +736,13 @@ void QSGD3D12EnginePrivate::initialize(WId w, const QSize &size, float dpr, int const bool debugLayer = qEnvironmentVariableIntValue("QT_D3D_DEBUG") != 0; if (debugLayer) { qCDebug(QSG_LOG_INFO_GENERAL, "Enabling debug layer"); +#if !defined(Q_OS_WINRT) || !defined(NDEBUG) ComPtr<ID3D12Debug> debugController; if (SUCCEEDED(D3D12GetDebugInterface(IID_PPV_ARGS(&debugController)))) debugController->EnableDebugLayer(); +#else + qCDebug(QSG_LOG_INFO_GENERAL, "Using DebugInterface will not allow certification to pass"); +#endif } QSGD3D12DeviceManager *dev = deviceManager(); |