From 79a31acd963a970a28f60ca423ff5c18142708da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 11 Sep 2018 22:34:39 -0700 Subject: [PATCH] Cleanup. --- src/renderer_d3d12.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 8342363e7..2d55e8eba 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -964,6 +964,8 @@ namespace bgfx { namespace d3d12 m_numWindows = 1; #if BX_PLATFORM_WINDOWS + m_infoQueue = NULL; + DX_CHECK(m_dxgi.m_factory->MakeWindowAssociation( (HWND)g_platformData.nwh , 0 | DXGI_MWA_NO_WINDOW_CHANGES @@ -3191,7 +3193,7 @@ namespace bgfx { namespace d3d12 ID3D12Resource* m_msaaRt; #if BX_PLATFORM_WINDOWS - ID3D12InfoQueue* m_infoQueue = nullptr; + ID3D12InfoQueue* m_infoQueue; #endif // BX_PLATFORM_WINDOWS int64_t m_presentElapsed;