mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Enable DXGI_CREATE_FACTORY_DEBUG for debug builds
This commit is contained in:
@@ -347,7 +347,14 @@ bool D3D11VARenderer::initialize(PDECODER_PARAMETERS params)
|
||||
return false;
|
||||
}
|
||||
|
||||
hr = CreateDXGIFactory(__uuidof(IDXGIFactory5), (void**)&m_Factory);
|
||||
hr = CreateDXGIFactory2(
|
||||
#ifdef QT_DEBUG
|
||||
DXGI_CREATE_FACTORY_DEBUG,
|
||||
#else
|
||||
0,
|
||||
#endif
|
||||
__uuidof(IDXGIFactory5),
|
||||
(void**)&m_Factory);
|
||||
if (FAILED(hr)) {
|
||||
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"CreateDXGIFactory() failed: %x",
|
||||
|
||||
Reference in New Issue
Block a user