From 000fdae6ccfe0067b8621400b3c92cab1d86cedc Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 4 Dec 2018 20:10:35 -0800 Subject: Minor code improvements in Vk backend --- .../GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp index 9fdaf3bb..61456e50 100644 --- a/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp +++ b/Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp @@ -120,10 +120,16 @@ namespace Diligent { if (m_State.NumCommands != 0) { - LOG_ERROR_MESSAGE(m_bIsDeferred ? - "There are outstanding commands in deferred context #", m_ContextId, " being destroyed, which indicates that FinishCommandList() has not been called." : - "There are outstanding commands in the immediate context being destroyed, which indicates the context has not been Flush()'ed.", - " This is unexpected and may result in synchronization errors"); + if (m_bIsDeferred) + { + LOG_ERROR_MESSAGE("There are outstanding commands in deferred context #", m_ContextId, " being destroyed, which indicates that FinishCommandList() has not been called." + " This may cause synchronization issues."); + } + else + { + LOG_ERROR_MESSAGE("There are outstanding commands in the immediate context being destroyed, which indicates the context has not been Flush()'ed.", + " This may cause synchronization issues."); + } } if (m_bIsDeferred) @@ -802,8 +808,8 @@ namespace Diligent else { for( Uint32 rt = 0; rt < NumRenderTargets; ++rt ) - ppRTVs[rt] = m_pBoundRenderTargets[rt].RawPtr(); - pDSV = m_pBoundDepthStencil.RawPtr(); + ppRTVs[rt] = m_pBoundRenderTargets[rt].RawPtr(); + pDSV = m_pBoundDepthStencil.RawPtr(); } auto& CmdCtx = GetCmdContext(); -- cgit v1.2.3