Branimir Karadžić 7 năm trước cách đây
mục cha
commit
79a31acd96
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      src/renderer_d3d12.cpp

+ 3 - 1
src/renderer_d3d12.cpp

@@ -964,6 +964,8 @@ namespace bgfx { namespace d3d12
 				m_numWindows = 1;
 				m_numWindows = 1;
 
 
 #if BX_PLATFORM_WINDOWS
 #if BX_PLATFORM_WINDOWS
+				m_infoQueue = NULL;
+
 				DX_CHECK(m_dxgi.m_factory->MakeWindowAssociation( (HWND)g_platformData.nwh
 				DX_CHECK(m_dxgi.m_factory->MakeWindowAssociation( (HWND)g_platformData.nwh
 					, 0
 					, 0
 					| DXGI_MWA_NO_WINDOW_CHANGES
 					| DXGI_MWA_NO_WINDOW_CHANGES
@@ -3191,7 +3193,7 @@ namespace bgfx { namespace d3d12
 		ID3D12Resource*   m_msaaRt;
 		ID3D12Resource*   m_msaaRt;
 
 
 #if BX_PLATFORM_WINDOWS
 #if BX_PLATFORM_WINDOWS
-		ID3D12InfoQueue* m_infoQueue = nullptr;
+		ID3D12InfoQueue* m_infoQueue;
 #endif // BX_PLATFORM_WINDOWS
 #endif // BX_PLATFORM_WINDOWS
 
 
 		int64_t m_presentElapsed;
 		int64_t m_presentElapsed;